Code located at the bottom of tag_me.utils.helpers
If a TaggedCharField has a choices enum this will nuke it... I think.
def get_field_choices(
model_verbose_name: str = None,
field_verbose_name: str = None,
user: User = None,
) -> list[tuple]:
"""Get the available choices for a model field.
.. todo:: Add a check for existing field choice enum and return it.
"""
choices = UserTag.objects.filter(
feature=model_verbose_name,
field=field_verbose_name,
# user=user,
)
return choices
What is the chore?
Code located at the bottom of
tag_me.utils.helpers
If aTaggedCharField
has achoices enum
this will nuke it... I think.