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
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
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
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
4 matches
Mail list logo