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

Refs #19722 -- Added a test for querying generic relations of a parent class.

Fixed in c9a96075fa.
This commit is contained in:
Tim Graham
2015-10-08 09:15:28 -04:00
parent 25f287f6b2
commit 4a7b58210d
2 changed files with 15 additions and 2 deletions

View File

@@ -88,6 +88,10 @@ class Vegetable(models.Model):
return self.name
class Carrot(Vegetable):
pass
@python_2_unicode_compatible
class Mineral(models.Model):
name = models.CharField(max_length=150)