HI ! In model I have : from django.db import models
# Create your models here. class User(models.Model): User = models.CharField(maxlength=200) Pasw = models.CharField(maxlength=16) def __unicode__(self): return self.question def was_published_today(self): return self.User class Admin: pass class Cit(models.Model): Dad = models.ForeignKey(User) Cit = models.CharField(maxlength=16) def __unicode__(self): return self.choice class Admin: pass I try in python shell to manage this model : >>> from mysite.polls.models import User,Cit >>> Luigi = User(User='Luigi',Pasw='Luigi') >>> Luigi.save() Traceback (most recent call last): File "<console>", line 1, in <module> File "/usr/lib/python2.5/site-packages/django/db/models/base.py", line 247, in save ','.join(placeholders)), db_values) File "/usr/lib/python2.5/site-packages/django/db/backends/util.py", line 19, in execute return self.cursor.execute(sql, params) File "/usr/lib/python2.5/site-packages/MySQLdb/cursors.py", line 164, in execute self.errorhandler(self, exc, value) File "/usr/lib/python2.5/site-packages/MySQLdb/connections.py", line 35, in defaulterrorhandler raise errorclass, errorvalue OperationalError: (1054, "Unknown column 'User' in 'field list'") >>> --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---