Ticket #22421: regression-test.2.diff

File regression-test.2.diff, 1.1 KB (added by stanislas.guerra@…, 10 years ago)

replace the previous patch (removed subtitle field to narrow down the bug).

  • tests/fixtures_regress/fixtures/special-article.json

    diff --git a/tests/fixtures_regress/fixtures/special-article.json b/tests/fixtures_regress/fixtures/special-article.json
    index a36244a..75f2d65 100644
    a b  
    22    {
    33        "pk": 1,
    44        "model": "fixtures_regress.article",
    5         "fields": {"title": "foof"
     5        "fields": {
     6            "title": "foof"
    67        }
    78    },
    89    {
    910        "pk": 1,
    1011        "model": "fixtures_regress.specialarticle",
    1112        "fields": {
    12             "title": "Article Title 1",
    1313            "channels": []
    1414        }
    1515    }
  • tests/fixtures_regress/models.py

    diff --git a/tests/fixtures_regress/models.py b/tests/fixtures_regress/models.py
    index 95f9488..6f508dd 100644
    a b class Article(models.Model):  
    6666
    6767
    6868# Subclass of a model with a ManyToManyField for test_ticket_20820
    69 class SpecialArticle(Article):
     69class CommonSpecialArticle(Article):
     70    pass
     71
     72    class Meta:
     73        abstract = True
     74
     75
     76class SpecialArticle(CommonSpecialArticle):
    7077    pass
    7178
    7279
Back to Top