Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactors System Taxonomy logic to use some ObjectTag subclasses #6

Merged

Conversation

pomegranited
Copy link
Member

No description provided.

* Adds Taxonomy.object_tag_class property, which can be overridden by
  Taxonomy subclasses to provide their own ObjectTag subclasses.
* Replaces the Taxonomy._set_tag method with an ObjectTag.tag_ref
  property setter, so that ObjectTag subclasses can dynamically create
  Tags as needed during tag_object()
* Moves the tag_class_model and tag_class_value properties to a new
  ModelObjectTag abstract class, so the ModelSystemDefinedTaxonomy can
  be simpler.
* Updates tests for coverage
removing the need for _get_tags_query_set
@ChrisChV
Copy link
Member

Thanks @pomegranited. This changes make sense to me 👍

@ChrisChV ChrisChV merged commit 62501cd into chris/system-defined-taxonomies Jul 20, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants