On Tue, 2007-11-06 at 15:02 -0800, gordyt wrote:
> Howdy Folks!
>
> I've got a new project coming up that will generate
gazillions (that's
> a technical term for a whole lot) of objects for
certain objects in
> the model.
>
> Is it possible to get Django to use a really large
integer type for
> the automatically-generated primary key, like a serial
or bigserial in
> postgresql?
You can't change the underlying data type for the
automatically
generated primary key without changing Django's source.
So your choices are either to write a custom field or, more
easily,
manually alter the type of the primary key column after the
table has
been created (see
http://www.djangoproject.com/doc
umentation/model-api/#providing-initial-sql-data ).
Regards,
Malcolm
--
The cost of feathers has risen; even down is up!
http://www.pointy-s
tick.com/blog/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-users googlegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribe googlegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---
|