Hi,
I have the following model: class Produkte(models.Model): Kategorie = models.ForeignKey(Kategorien) Titel = models.CharField(max_length=100) Auflage = models.IntegerField(max_length=2, blank=True) Bestell_Nr = models.CharField(max_length=30, blank=True) ISBN = models.CharField(max_length=30, blank=True) Autor = models.CharField(max_length=50, blank=True) Status = models.IntegerField(max_length=1, blank=False, default=1) def __unicode__(self): if self.Auflage: return "%s %s" % (self.Titel, self.Auflage) else: return self.Titel class Meta: db_table = 'tb_Produkte' verbose_name_plural = "Produkte" verbose_name = "Produkt" 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 ?! greets . . . . . . . . . . . . . . . . . . . . . . . . . . Patrick Szabo XSLT Developer LexisNexis Marxergasse 25, 1030 Wien mailto:patrick.sz...@lexisnexis.at Tel.: 00431 534521573 Fax: +43 (1) 534 52 - 146 -- 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.