If you use a model form it will also be validated.
On Sep 11, 9:41 pm, "Chris Stromberger" <[EMAIL PROTECTED]>
wrote:
> Curious about using "unique" in a column definition of a model for a legacy
> db. My assumption is that "unique" only comes into play during db creation,
> to create the index on the field, and thereafter uniqueness is enforced by
> the db? Or does unique in a model affect creation of new model objects or
> anything else?
>
> Just wondering bcs I made a few columns unique on the db after the initial
> model creation. Is it important to go back and add unique to the Django
> model in this case?
>
> Thanks,
> Chris
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---