mirror of
https://github.com/django/django.git
synced 2025-10-26 23:26:08 +00:00
[1.6.x] Fixed ._meta.pk_index() virtual field failure
Backport of 92476e880c from master
This commit is contained in:
@@ -140,6 +140,9 @@ class Article(models.Model):
|
||||
except ArticleTranslation.DoesNotExist:
|
||||
return '[No translation found]'
|
||||
|
||||
class NewsArticle(Article):
|
||||
pass
|
||||
|
||||
class ArticleTranslation(models.Model):
|
||||
article = models.ForeignKey(Article)
|
||||
lang = models.CharField(max_length='2')
|
||||
|
||||
Reference in New Issue
Block a user