Since you changed your changed your models, you will have to drop your tables and syncdb all over again.
On 10/16/11, Piotr Hosowicz <phosow...@gmail.com> wrote: > Hello, > > To remind: this is my models.py excerpt: > > class CampPeople(models.Model): > person = models.ForeignKey(Person) > camp = models.ForeignKey(Campaign) > docall = models.BooleanField(default = True) > called = models.BooleanField(default = False) > > class PersonPhones(models.Model): > person = models.ForeignKey(Person) > phone = models.ForeignKey(Phone) > def __unicode__(self): > return "%s" % (unicode(self.phone) or "") > > This is my template: > > <table> > > {% for ziutek in phones %} > {{ ziutek }} > {% endfor %} > > </table> > > Now I get following error in the browser: > > TemplateSyntaxError at /people/campaign/1 > > Caught DatabaseError while rendering: BŁĄD: kolumna > people_phone.person_id nie istnieje > LINE 1: SELECT "people_phone"."id", "people_phone"."person_id", > "peo... > > It says that column people_phone.person_id doesn't exist and it's > true, there is only id column, I have the joins defined in > people_phones table. > > Please help me, I am terribly ill and would like to do something > positive. > > Regards, > > Piotr Hosowicz > > -- > 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+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- Sent from my mobile device -- 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.