I have a small site with several users, and I would like to add a field to one of my models (and therefore to the tables.) The problem is that syncdb , of course, will not touch existing models, but I'm trying to figure out how add this field to the model / table without overwriting it all.
Example:
class Newspaper(models.Model): name = models.CharField() class UserProfile(models.Model): user = models.ForeignKey(user, unique=True) reads = models.ManyToManyField(Newspaper)
Now I would like to add the URL field ( blank=True ) to the Newspaper model without violating user profiles.
Any ideas?
django-models
Deniz Dogan May 6 '09 at 3:18 p.m. 2009-05-06 15:18
source share