1
0
mirror of https://github.com/django/django.git synced 2024-11-18 23:44:22 +00:00
django/tests/regressiontests/generic_inline_admin/fixtures/model-data.xml
Brian Rosner f751d5b713 Fixed #9498 -- Handle a formset correctly when the foreign key is not available (for now).
This case pops up with generic foreign key inlines after [9297]. Added tests
to handle future regressions with generic foreign key inlines in the admin.

Thanks markus and danielr for patches.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@9412 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-11-13 19:03:44 +00:00

11 lines
514 B
XML

<?xml version="1.0" encoding="utf-8"?>
<django-objects version="1.0">
<object pk="1" model="generic_inline_admin.Episode">
<field type="CharField" name="name">This Week in Django</field>
</object>
<object pk="1" model="generic_inline_admin.Media">
<field type="ForeignKey" name="content_type">13</field>
<field type="PositiveIntegerField" name="object_id">1</field>
<field type="URLField" name="url">http://example.com/podcast.mp3</field>
</object>
</django-objects>