mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
[1.6.x] Fixed #20820 -- Model inheritance + m2m fixture loading regression
Tests by Tim Graham, report from jeroen.pulles@redslider.net.
Backport of 1ed77e7782 from master
This commit is contained in:
@@ -431,6 +431,17 @@ class TestFixtures(TestCase):
|
||||
self.assertTrue("No fixture 'this_fixture_doesnt_exist' in" in
|
||||
force_text(stdout_output.getvalue()))
|
||||
|
||||
def test_ticket_20820(self):
|
||||
"""
|
||||
Regression for ticket #20820 -- loaddata on a model that inherits
|
||||
from a model with a M2M shouldn't blow up.
|
||||
"""
|
||||
management.call_command(
|
||||
'loaddata',
|
||||
'special-article.json',
|
||||
verbosity=0,
|
||||
)
|
||||
|
||||
|
||||
class NaturalKeyFixtureTests(TestCase):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user