If you want tags, use the django-tagging application. On Feb 16, 6:36 am, Alper KANAT <tu...@raptiye.org> wrote: > Hey There, > > I've two models: > Entry<http://pastie.textmate.org/private/bh72trmaadcuvgfrrkndfw>and > Tag <http://pastie.textmate.org/private/5nat4lm19f7pgwmbazng>. I think Tag > model as a generic model to use with other models but not an abstract model > since it can be used standalone too. Any way, what I want is to be able to > add new tags within Entry addition page without any modifications to the > Entry model. So I created the EntryTag model which extends Tag model. The > problem is that I can't show EntryTag model as a m2m field inside the > addition page of Entry model since Entry model has the reference to it. > EntryTag's addition page shows a multiselect box of entries so that I can > add new tags while selecting entries but I need the opposite behaviour too.. > > For this, I changed the form of Entry model like > this<http://pastie.textmate.org/private/q8yyfev0ekrnlyizsuxqq>. > Well; I can now show up the m2m field widget of tags (i still have problems > though such as tags already selected for an entry is not initialy selected > when the page is first loaded) in the Entry page but I had problems with > add-another link. I found out that changing the widget might work but this > time I can't do it for adding new Tags.. When I click on the add-another > link, it opens a new addition window for Entry model. > > Am I thinking the wrong way or trying to achieve this goal with the django > way is a bit hard? > > --- > Quis custodiet ipsos custodes?
-- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.