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 values.

More info is available at
http://www.djangoproject.com/documentation/model_api/#many-to-many-relationships

Cheers,

Ross


--~--~---------~--~----~------------~-------~--~----~
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 this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to