Define new Collection Model with the following fields in a new collections app in the openedx_learning repo:
- id: models.AutoField(primary_key=True)
- context: ForeignKey to the LearningPackage (which is a 1-to-1 with ContentLibrary) instance this collection belongs to
- name
- description
- date_created
- date_updated
- enabled
- allow_multiple
- ... possibly other fields - see collections design in Figma
Create a python API for CRUD operations on these collection objects, and appropriate test cases.
Define new
CollectionModel with the following fields in a newcollectionsapp in theopenedx_learningrepo:Create a python API for CRUD operations on these collection objects, and appropriate test cases.