1
0
mirror of https://github.com/django/django.git synced 2025-10-24 22:26:08 +00:00

Fixed #19677 -- Introspection of recursive foreign keys under SQLite.

Thanks Simon Charette.
This commit is contained in:
Aymeric Augustin
2013-01-28 10:17:56 +01:00
parent 14d1d504d5
commit f46d7314b5
4 changed files with 14 additions and 8 deletions

View File

@@ -23,6 +23,7 @@ class Article(models.Model):
headline = models.CharField(max_length=100)
pub_date = models.DateField()
reporter = models.ForeignKey(Reporter)
response_to = models.ForeignKey('self', null=True)
def __str__(self):
return self.headline