djangosnippets.org: Latest snippets tagged with 'unique-key'http://djangosnippets.org/tags/unique-key/2009-08-25T08:10:16.311591-05:00Auto-rename duplicate fields
2009-08-25T08:10:16.311591-05:00christian.oudardhttp://djangosnippets.org/snippets/1699/<p>This is useful to run before you add a unique key to a character field that has duplicates in it. It just adds numbers to the end of the contents, so they will be unique.</p>
<p>It takes a model class and a field name. The model class can be a …</p>
Freely redistributable