Using Django you don't need to explicitly define the PhotoTag model.
Create your Tag model first, then create the Photo model. In the Photo
model, include a field like such:
tags = meta.ManyToManyField(Tag)
The admin interface will render this as a select box where you can
select multiple value
Sorry - some edit_inline, etc. got cut off in the paste.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from t
Hi, three models that concern this issue are Photo, Tag, and PhotoTag.
Tag represents the model for all tags:
class PhotoTag( meta.Model ):
tid = meta.ForeignKey( Tag, core = True )
pid = meta.ForeignKey( Photo, core = True, verbose_name = "Photo
Tag", edit_
class META:
# fol
3 matches
Mail list logo