djangosnippets.org: Latest snippets tagged with 'constraints'http://djangosnippets.org/tags/constraints/2007-07-24T00:23:35.870855-05:00Validation for 'unique' and 'unique_together' constraints (different version)
2007-07-24T00:23:35.870855-05:00miracle2khttp://djangosnippets.org/snippets/338/<p>This is a slightly different and extendend version of this snippet:</p>
<p>http://www.djangosnippets.org/snippets/260/</p>
<p>Unique constraints for single fields are validated in a clean_FIELD, instead of globally in the form's clean() method, so that the error messages are correctly assigned to each field.</p>
<p>Additionally, you can specify mappings for unique_together constraints to …</p>
Freely redistributable