django - django-taggit form

前端 未结 3 896
南方客
南方客 2020-12-29 12:40

I would like to use django-taggit (click here ). The documentation ( click here) talks about using ModelForm to generate the form but I have alrea

3条回答
  •  时光取名叫无心
    2020-12-29 13:32

    I can't comment on the used/"green ticked" answer. But I would change the Block

    for m_tag in m_tags:
        object.tags.add(m_tag)
    

    to

    object.tags.add(*m_tags)
    

提交回复
热议问题