Re: Puzzling META.unique_together issue

2006-03-04 Thread Ross Poulton
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

Re: Puzzling META.unique_together issue

2006-03-03 Thread Bo Shi
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

Puzzling META.unique_together issue

2006-03-03 Thread Bo Shi
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: #