Django UUIDField modelfield causes error in Django admin: badly formed hexadecimal UUID string
问题 I have a Django 1.8 project and on one of my models, I am using the new UUIDField like so: class MyModel(models.Model): id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False) I've also set up my admin.py: @admin.register(MyModel) class MyModelAdmin(admin.ModelAdmin): pass When I load the admin page to try to create an instance, I get an error: ValueError at /admin/core/mymodel/add/ badly formed hexadecimal UUID string I am able to create an instance no problem from the