> I just set up a few fixtures for some of my models and realized that
> every time I syncdb it changes the existing data in my database. I
> assume this is normal behavior, but I was wondering if it is possible
> to have the fixtures only *add* data and not change it?

As I understand, and also as documented syncdb doesn't change existing
table. you should modify your model, after or before that you should
alter your table to consist with model.

> I have a fixture that adds a row to my model with the value "foo",
> then I change it in the admin to "bar", then syncdb, it gets changed
> back to "foo". Is there a way to keep the changed value of "bar"?

after changing row you don't need to run syncdb, just save it.


-- 
Regards
Dulmandakh

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to