Skip to content

[API] Model and Serializer Changes in Support of Taggit. #43

@BethanyG

Description

@BethanyG

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 Resources now using an int for pk in addition to the UUID4 as a guid.
  • 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 serialization Lib only returns a list, wrote custom serializer to return a list of slug: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:

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions