mirror of
https://github.com/django/django.git
synced 2025-11-01 12:25:37 +00:00
Fixed #15786 -- Added a regression test for o2o excludes using F().
The issue was reported against 1.3.x but has been fixed since.
This commit is contained in:
parent
b0e06c3662
commit
c4fdd859ec
2 changed files with 21 additions and 2 deletions
|
|
@ -390,6 +390,10 @@ class OneToOneCategory(models.Model):
|
|||
def __str__(self):
|
||||
return "one2one " + self.new_name
|
||||
|
||||
class CategoryRelationship(models.Model):
|
||||
first = models.ForeignKey(SimpleCategory, related_name='first_rel')
|
||||
second = models.ForeignKey(SimpleCategory, related_name='second_rel')
|
||||
|
||||
class NullableName(models.Model):
|
||||
name = models.CharField(max_length=20, null=True)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue