flebel / django-tagging

Automatically exported from code.google.com/p/django-tagging
Other
0 stars 0 forks source link

Model TagField should act as related descriptor #130

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Adding a TagField to a model allows it to be tagged, but the TagField's 
descriptor always and only 
returns a string containing the tag names, and provides no way whatsoever of 
accessing or -- more 
importantly -- iterating over the objects themselves. To get that 
functionality, one must *also* 
apply the registration mechanism (and potentially supply a descriptor name).

This would be much simpler if the TagField descriptor simply behaved like any 
other related-object 
descriptor (i.e., if it were a manager through which the related instances 
could be accessed and 
iterated over). I'd expect that since all other relations in Django work this 
way, doing so for tags 
would make it easier to get up to speed.

Original issue reported on code.google.com by ubernost...@gmail.com on 9 Jun 2008 at 9:30

GoogleCodeExporter commented 9 years ago

Original comment by jonathan.buchanan on 9 Jun 2008 at 10:12