Thank you, Maximillian, thanks to your tip i resolved the problem!! -- Carlo Caponi ____________________ http://www.karolvs.it icq #: 73707983
* Maximillian Dornseif <[EMAIL PROTECTED]> [29.09.06 11:03]: > > When I add a field I usually use "manage.py sqlall produktpass | grep > <fieldname>" to get the SQL. So when adding something like > > preference = models.IntegerField(verbose_name='Präferenz', core=True, > choices=PREFERENCE_CHOICES, default=0) > > I take the following steps: > $ manage.py sqlall produktpass | grep preference > "preference" integer NOT NULL, > $ psql8 -U mydatabase > mydatabase=# ALTER TABLE produktpass_image ADD "preference" integer NOT > NULL default 0; > hudora=# \q > > Regards > > Maximillian > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---