#12235: MultiValueDictKeyError when editing Inline objects -------------------------------------------+-------------------------------- Reporter: br...@playfirst.com | Owner: nobody Status: closed | Milestone: Component: django.contrib.admin | Version: 1.2 Resolution: fixed | Keywords: Stage: Accepted | Has_patch: 0 Needs_docs: 0 | Needs_tests: 0 Needs_better_patch: 0 | -------------------------------------------+-------------------------------- Changes (by quinode):
* status: reopened => closed * resolution: => fixed Comment: @ bruce_s :[[BR]] Another way to tell if the UUID field being added to the model is a primary key : {{{ def contribute_to_class(self, cls, name): if self.primary_key == True: assert not cls._meta.has_auto_field, "A model can't have more than one AutoField: %s %s %s; have %s" % (self,cls,name,cls._meta.auto_field) super(UUIDField, self).contribute_to_class(cls, name) cls._meta.has_auto_field = True cls._meta.auto_field = self else: super(UUIDField, self).contribute_to_class(cls, name) }}} @atkinsonr :[[BR]] I also use an UUIDField() in an abstract model, it's not a problem, you should really check your field implementation or use the django_extensions one. Re-setting this issue to "fixed" -- Ticket URL: <http://code.djangoproject.com/ticket/12235#comment:22> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-upda...@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.