Re: Django orm and no primary key

2012-01-10 Thread Thorsten Sanders
Am 10.01.2012 20:46, schrieb Ian Clelland: This is possible -- there was some discussion on this list about it just a few days ago. If you tell Django that another field is the actual primary key, then it will not assume that there is an 'id' column (which is good, because otherwise it will

Re: Django orm and no primary key

2012-01-10 Thread Ian Clelland
s referring to an implicit primary key, which Django will create if you do not specify one. The question was regarding using an existing table with no PK in Django. > I am wondering if it is possible to still use the django orm without > > having a primary key at all, I currently got a table

Re: Django orm and no primary key

2012-01-10 Thread webonomic
cally gives every model an auto-incrementing integer primary key field called id. Each Django model is required to have a single-column primary key." Jared On Jan 9, 3:45 pm, Thorsten Sanders <thorsten.sand...@gmx.net> wrote: > Hello, > > I am wondering if it is possible to

Django orm and no primary key

2012-01-09 Thread Thorsten Sanders
Hello, I am wondering if it is possible to still use the django orm without having a primary key at all, I currently got a table holding 61 million entries soon gonna expand to hold 600 million entries, that table never need to identify one entry alone its only to pull off statistics based