mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Fixed #29547 -- Added support for partial indexes.
Thanks to Ian Foote, Mariusz Felisiak, Simon Charettes, and Markus Holtermann for comments and feedback.
This commit is contained in:
parent
9625d13f7b
commit
a906c98982
17 changed files with 320 additions and 9 deletions
|
@ -27,6 +27,7 @@ class ArticleTranslation(models.Model):
|
|||
class Article(models.Model):
|
||||
headline = models.CharField(max_length=100)
|
||||
pub_date = models.DateTimeField()
|
||||
published = models.BooleanField(default=False)
|
||||
|
||||
# Add virtual relation to the ArticleTranslation model.
|
||||
translation = CurrentTranslation(ArticleTranslation, models.CASCADE, ['id'], ['article'])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue