1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed test failure caused by different NULL ordering between backends

This commit is contained in:
Anssi Kääriäinen
2013-08-20 11:33:44 +03:00
parent 905409855c
commit 8dc76c4b91
4 changed files with 15 additions and 3 deletions

View File

@@ -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)