Short version: model-aware validation is being worked on. We didn't get
it finished for 1.0, but it's still ongoing work.
Malcolm
Wouldn't it be nice to replace these three parameters by something like:
class SomeModel(models.Model):
[...]
class Meta:
unique_together = ('title', 'pub_date__year')
Meaning we could use the same syntax as we do for filter()/explude().
This could allow new use-cases like some combination of fields should be
unique for some given date. Example:
class SomeCategorizedModel(models.Model):
[...]
class Meta:
# perhaps useful for urls like /foo/<year>/<category>/<slug>/
unique_together = ('slug', 'category', 'pub_date__year')
Just some ideas I had when reading the original post, don't know if this
would require lots of work. :)
Greetings, David Danier