summaryrefslogtreecommitdiff
path: root/tests/regressiontests/generic_inline_admin/fixtures/model-data.xml
diff options
context:
space:
mode:
authorBrian Rosner <brosner@gmail.com>2008-11-13 19:03:44 +0000
committerBrian Rosner <brosner@gmail.com>2008-11-13 19:03:44 +0000
commitf751d5b71348b4f86fcc81877d6b28d89ad03186 (patch)
tree723717cd21f4f9c31e82879e0ef6780b318353c4 /tests/regressiontests/generic_inline_admin/fixtures/model-data.xml
parentdfa90aec1bed28f581b0f0471dc95860bb166cc9 (diff)
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
Diffstat (limited to 'tests/regressiontests/generic_inline_admin/fixtures/model-data.xml')
-rw-r--r--tests/regressiontests/generic_inline_admin/fixtures/model-data.xml11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/regressiontests/generic_inline_admin/fixtures/model-data.xml b/tests/regressiontests/generic_inline_admin/fixtures/model-data.xml
new file mode 100644
index 0000000000..a629208d2d
--- /dev/null
+++ b/tests/regressiontests/generic_inline_admin/fixtures/model-data.xml
@@ -0,0 +1,11 @@
+<?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> \ No newline at end of file