mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Fixed test failure caused by different NULL ordering between backends
This commit is contained in:
parent
905409855c
commit
8dc76c4b91
4 changed files with 15 additions and 3 deletions
|
@ -262,9 +262,13 @@ class ReservedName(models.Model):
|
|||
return self.name
|
||||
|
||||
# A simpler shared-foreign-key setup that can expose some problems.
|
||||
@python_2_unicode_compatible
|
||||
class SharedConnection(models.Model):
|
||||
data = models.CharField(max_length=10)
|
||||
|
||||
def __str__(self):
|
||||
return self.data
|
||||
|
||||
class PointerA(models.Model):
|
||||
connection = models.ForeignKey(SharedConnection)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue