Wednesday, May 4, 2011

Re: Getting Django admin to display new autoincremented values in primary key model forms

Hi,

See this ticket for details on the error you are seeing:

http://south.aeracode.org/ticket/407

If I understand correctly, it sounds like you're asking for something
that isn't possible anyway.

The id isn't known until the item is inserted into the database,
because the database assigns the ids. It wouldn't be possible for
django to guess this - someone else could add another item after you
load your add item page, taking the id that your item was meant to
have.

Regards,

Peter

--
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 http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate