Since I've published my little Django tag library "TagsField" I noticed many attempts to translate the page into English using BabelFish (and I know just how hideous the result tends to be :-) ). So I've found the time to translate it and am happy to invite all English-speaking Django users to give it a try.
P.S. Also if you're a native English speaker please do send me an email if you find any errors in the translation.
Комментарии: 3
Great stuff Ivan - I'll certainly be taking a look at this as a possibility for using in a few upcoming applications. I've just used many-to-many in the past, but the auto-complete stuff you've done looks very useful.
I could not figure out how to use it... You say it is just like many-to-many, could you please give an example with both many-to-many classes? I guess I am missing something. Thanks,
Luis Gustavo
Ok, here's a very minimal example that should be enough to have it working. If not at least it'll give some ground to investigate a problem...
models.py:
For a view you can use Django's generic views but for completeness here's a pretty standard Django's view for dealing with forms:
And the template, article.html: