RE: External DB layout, two column as PK, modification not possible

2018-08-01 Thread Matthew Pava
inserts, updates, and deletes. From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of Kevin Olbrich Sent: Wednesday, August 1, 2018 1:01 PM To: Django users Subject: External DB layout, two column as PK, modification not possible Hi! I got the following table

External DB layout, two column as PK, modification not possible

2018-08-01 Thread Kevin Olbrich
Hi! I got the following table definition on inspect db: class KevinExample(models.Model): *code = models.CharField(db_column='Code', primary_key=True, max_length=50) # Field name made lowercase.lineid = models.IntegerField(db_column='LineId') # Field name made lowercase.* object