Hi, Sry, i was a little bit unclear. Of course i tried to store identical entries (all fields have the same values) and i had no problem doing so. Since most of the files i want to check for can be null i only inputet a titel.
. . . . . . . . . . . . . . . . . . . . . . . . . . Patrick Szabo XSLT Developer LexisNexis Marxergasse 25, 1030 Wien mailto:patrick.sz...@lexisnexis.at Tel.: 00431 534521573 Fax: +43 (1) 534 52 - 146 -----Ursprüngliche Nachricht----- Von: django-users@googlegroups.com [mailto:django-users@googlegroups.com] Im Auftrag von Tom Evans Gesendet: Montag, 04. Juli 2011 11:38 An: django-users@googlegroups.com Betreff: Re: unique_together doesn't work On Mon, Jul 4, 2011 at 10:33 AM, Szabo, Patrick (LNG-VIE) <patrick.sz...@lexisnexis.at> wrote: > Hi, > ... > class Meta: > unique_together = ("Kategorie", "Titel", "Auflage", "Status") > > but somehow the unique_together doesn't seem to work. I can store entries > with the same titel without a problem. > > > > Am I doing something wrong ?! > That's not what unique_*together* means - you can't have two entries with the same category, title, condition and status. Eg you can have two entries with the same title, as long as they have different category, condition or status. Cheers Tom -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en. -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.