I am clearly not understanding how to do this correctly, can someone set me straight. Here is the model:
class Team(models.Model):
teamID=models.CharField(max_length=255) #this will be generated on the iPad
name=models.CharField(max_length=255)
slug=models.SlugField(max_length=50)
teamNumber=models.CharField(max_length=30)
checkIn=models.DateTimeField(default=datetime.now())
totalScore=models.IntegerField(max_length=6)
class Meta:
unique_together = ("teamID", "name", "slug", "teamNumber", "totalScore")
If I submit twice in a row it saves all of it. Yikes!!!
Try the proper nested-tuple syntax
((foo,bar),)instead of just(foo, bar)?https://docs.djangoproject.com/en/dev/ref/models/options/#unique-together