Hi,

I am coming to the conclusion that it is not possible, but I wanted to
ask one last time before I give up.  Is it possible to use a uuid
primary key on a model used as an admin inline?

I've tried every uuid field I could find and attempted to get my own
to work as well, but no matter what I try it will not work.  Saving
the model results in a MultiValueDictKeyError if it's pk doesn't have
any auto field.

Here are several attempts which work for most cases:
http://www.gordontillman.info/computers/41-django/94-django-uuidfield-problem
http://www.davidcramer.net/code/420/improved-uuidfield-in-django.html
https://gist.github.com/374662
https://github.com/django-extensions/django-extensions/blob/master/django_extensions/db/fields/__init__.py#L189


This issue seems to have the majority drawing the conclusion that the
fields are written poorly:
http://code.djangoproject.com/ticket/12235

I have the same problem as described by that issue and I am stuck.
How can I make this work?

I have attempted to fake the UUID field as an auto field.  Doing this
will allow me to save the model, but the reference is lost in the
admin and the user is sent to a 404 page after submiting a new
instance.

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to