diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2007-01-17 05:39:29 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2007-01-17 05:39:29 +0000 |
| commit | d41320d2e5e7457396ebb0016d822d49ffc1424a (patch) | |
| tree | a73cd3fb658dd096d9da5dfe4f0e72137f640d37 /tests | |
| parent | 4fc14c6f7a04bb3f5b147fff6f840efb1b2f04e8 (diff) | |
newforms-admin: Finished migrating AdminOptions to ModelForm. AdminOptions no longer exists. Things are still a bit messy.
git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@4343 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/regressiontests/invalid_admin_options/models.py | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/tests/regressiontests/invalid_admin_options/models.py b/tests/regressiontests/invalid_admin_options/models.py index 43bcc533ba..94e6ccdde1 100644 --- a/tests/regressiontests/invalid_admin_options/models.py +++ b/tests/regressiontests/invalid_admin_options/models.py @@ -8,18 +8,6 @@ model validation is working properly. from django.db import models model_errors = "" -# TODO: Invalid admin options should not cause a metaclass error -##This should fail gracefully but is causing a metaclass error -#class BadAdminOption(models.Model): -# "Test nonexistent admin option" -# name = models.CharField(maxlength=30) -# -# class Admin: -# nonexistent = 'option' -# -#model_errors += """invalid_admin_options.badadminoption: "admin" attribute, if given, must be set to a models.AdminOptions() instance. -#""" - class ListDisplayBadOne(models.Model): "Test list_display, list_display must be a list or tuple" first_name = models.CharField(maxlength=30) @@ -334,4 +322,4 @@ class OrderingBad(models.Model): # manager = 'nonexistent' # #model_errors += """invalid_admin_options.managerbad: "admin.manager" refers to 'nonexistent', which isn't a Manager(). -#"""
\ No newline at end of file +#""" |
