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:
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user