mirror of
https://github.com/django/django.git
synced 2025-10-28 08:06:09 +00:00
[1.10.x] Refs #26983 -- Added test for isnull lookup to CharField with primary_key=True.
Backport of 97513269d7 from master
This commit is contained in:
@@ -261,7 +261,7 @@ class CustomPk(models.Model):
|
||||
|
||||
|
||||
class Related(models.Model):
|
||||
custom = models.ForeignKey(CustomPk, models.CASCADE)
|
||||
custom = models.ForeignKey(CustomPk, models.CASCADE, null=True)
|
||||
|
||||
|
||||
class CustomPkTag(models.Model):
|
||||
|
||||
Reference in New Issue
Block a user