On Sun, May 16, 2010 at 11:12 AM, Lukáš wrote:
> "Why are you specify db_column='language_id' for the label field? Why
> not
> just let this field be given its default column name in the table?"
>
> Isnt it the same thing? The only difference is, that django will add
> "_id" to it now and in the
"Why are you specify db_column='language_id' for the label field? Why
not
just let this field be given its default column name in the table?"
Isnt it the same thing? The only difference is, that django will add
"_id" to it now and in the end result is the same, I still get the
error.
If my model
On Sun, May 16, 2010 at 10:35 AM, Lukáš wrote:
>
> I would like to save a modified model, but I get Programming error -
> language_id field is specified twice.
>
> class ProductInfo(models.Model):
>product_info_id = models.AutoField(primary_key=True)
>language_id = models.IntegerField()
>
3 matches
Mail list logo