summaryrefslogtreecommitdiff
path: root/tests/regressiontests/admin_views/models.py
diff options
context:
space:
mode:
authorJacob Kaplan-Moss <jacob@jacobian.org>2009-05-08 12:53:14 +0000
committerJacob Kaplan-Moss <jacob@jacobian.org>2009-05-08 12:53:14 +0000
commit23fa913676d66ce4d32501618b1b74e8b2dca5fc (patch)
tree10f069413200a2c06ccc795c40f1b8a406eb9f47 /tests/regressiontests/admin_views/models.py
parent38a6c48878c4318fac404e6ee2454d78b26c098b (diff)
Fixed #10448: correcting errors on "save as new" now correctly create a new object instead of modifying the old one. Thanks, bastih.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@10713 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests/regressiontests/admin_views/models.py')
-rw-r--r--tests/regressiontests/admin_views/models.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/regressiontests/admin_views/models.py b/tests/regressiontests/admin_views/models.py
index 1aeaea1b1d..f09190b013 100644
--- a/tests/regressiontests/admin_views/models.py
+++ b/tests/regressiontests/admin_views/models.py
@@ -174,6 +174,7 @@ class PersonAdmin(admin.ModelAdmin):
list_filter = ('gender',)
search_fields = (u'name',)
ordering = ["id"]
+ save_as = True
class Persona(models.Model):
"""