max_length > 100 characters

22 views
Skip to first unread message

davide...@gmail.com

unread,
Mar 15, 2017, 8:11:31 AM3/15/17
to django-taggit
Dear All,

To accomplish this do I need to 

create:
    class MyCustomTag(TagBase):

and basically I could copy the TagBase fields definition, but with max_length=255

create:
    class TaggedWhatever(GenericTaggedItemBase):

and eventually use it in my model like:

class Food(models.Model):
    # ... fields here

    tags = TaggableManager(through=TaggedWhatever)


Thanks,

D
Reply all
Reply to author
Forward
0 new messages