Re: ForeignKey in other models.py

2006-10-23 Thread sandro.dentella
> When I try to edit with the admin interfaces django raises an error: > > Exception Type: OperationalError > Exception Value: no such column: film_film.proposto_da_id Explanation: I added field "proposto_da" after creating the db so I added it by hand but I didn't realize that django

Re: ForeignKey in other models.py

2006-10-21 Thread sandro.dentella
> I tried to insert, as you have said to me, but have received this error: > line 124, in get_all_related_objects > if f.rel and self == f.rel.to._meta: > AttributeError: 'str' object has no attribute '_meta' I guess you have quotes around the name of the class, so that the Referenced class

Re: ForeignKey in other models.py

2006-10-20 Thread Vittorino Parenti
Michael Radziej wrote: >Vittorino Parenti schrieb: > > >>Hi, >>i found this in django documentation: >> >>"Note, however, that you can only use strings to refer to models in the >>same models.py file -- you cannot use a string to reference a model in a >>different application, or to reference

Re: ForeignKey in other models.py

2006-10-17 Thread Michael Radziej
Vittorino Parenti schrieb: > Hi, > i found this in django documentation: > > "Note, however, that you can only use strings to refer to models in the > same models.py file -- you cannot use a string to reference a model in a > different application, or to reference a model that has been imported

ForeignKey in other models.py

2006-10-17 Thread Vittorino Parenti
Hi, i found this in django documentation: "Note, however, that you can only use strings to refer to models in the same models.py file -- you cannot use a string to reference a model in a different application, or to reference a model that has been imported from elsewhere." i have different mo