"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 looks like this:

class ProductInfo(models.Model):
    product_info_id = models.AutoField(primary_key=True)
    language_id = models.IntegerField()
    product_id = models.IntegerField()
    description = models.TextField(blank=True)
    status = models.IntegerField()
    model = models.CharField(max_length=255, blank=True)

It will get saved properly. If I add the foreign key, with or without
db_column, I will get that naaasty error...

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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.

Reply via email to