Monday, April 26, 2010

Adding unique_together attribute after database is created

Hi,

I would like to add the unique_together attribute of the Meta class
for a model in my app.
My question is: my database already exists with several records, it is
possible to just add the attribute and not do anything in the database
level? does it work?

I have tried in a app using sqlite and another using postgres and it
worked. But I just wanted to get some confirmation.
I believe it does not affect the records I already have in the
database but only the newly created ones, I am right?

Is there any documentation page explaining this attribute in more
detail?

Thanks in advance.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate