-
-
Notifications
You must be signed in to change notification settings - Fork 22
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Resource model and serializer changes needed to support taggit.
- Remove JSONB field from Resources model
- Alter Resource model to include taggit manager as show here & here
Customize through model to support the non-int (UUID) PK for Resourcesnow using an int forpk
in addition to the UUID4 as aguid
.- Alter Admin interface to properly display taglist as shown here
-
Add https://github.com/glemmaPaul/django-taggit-serializer or something similar to installed packages for tag serializationLib only returns alist
, wrote custom serializer to return alist
ofslug:name
pairs. - Alter the
ResourceSerializer
as needed to support tags - Alter the
ResourceView
as needed to support tags as nested elements. - Change any
settings
needed to support tags - Update test cases as needed
- Add new tests as needed to support tags
- Add/alter fixtures to support tags (remove extra fields and other cleanup)
- Create fixture/load db with initial set of tags to "tag" resources with as POC.
- Tag existing resources so that they can be used in dev.
Additional related SO posts and others for reference/tips:
- https://stackoverflow.com/questions/52695298/using-django-taggit-and-django-taggit-serializer-with-issue
- https://stackoverflow.com/questions/57068139/cant-get-queryset-to-return-list-of-objects-that-is-descending-by-tag-matches
- https://stackoverflow.com/questions/57120364/django-taggit-how-to-record-id-of-user-that-added-tag
- https://stackoverflow.com/questions/21563726/using-django-taggit-with-django-rest-framework-im-not-able-to-save-my-tags
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request