1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed #29094 -- Fixed crash when entering an invalid uuid in ModelAdmin.raw_id_fields.

Regression in 2f9861d823.

Thanks Carel Burger for the report and fix.
This commit is contained in:
Tim Graham
2018-01-31 13:43:05 -05:00
parent 9bcf73d788
commit 552abffab1
5 changed files with 18 additions and 2 deletions

View File

@@ -1,3 +1,5 @@
import uuid
from django.contrib.auth.models import User
from django.db import models
@@ -92,6 +94,7 @@ class CarTire(models.Model):
class Honeycomb(models.Model):
id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
location = models.CharField(max_length=20)