mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #23934 -- Fixed regression in admin views obj parameter.
This commit is contained in:
@@ -874,3 +874,12 @@ class RecipeIngredient(models.Model):
|
||||
class NotReferenced(models.Model):
|
||||
# Don't point any FK at this model.
|
||||
pass
|
||||
|
||||
|
||||
# Models for #23934
|
||||
class ExplicitlyProvidedPK(models.Model):
|
||||
name = models.IntegerField(primary_key=True)
|
||||
|
||||
|
||||
class ImplicitlyGeneratedPK(models.Model):
|
||||
name = models.IntegerField(unique=True)
|
||||
|
||||
Reference in New Issue
Block a user