Author: jkocherhans
Date: 2007-09-13 13:00:23 -0500 (Thu, 13 Sep 2007)
New Revision: 6127
Modified:
django/branches/newforms-admin/tests/modeltests/invalid_models/models.py
Log:
newforms-admin: Fixed #5427. Failing invalid models test. Thanks Matt Croydon.
Modified:
django/branches/newforms-admin/tests/modeltests/invalid_models/models.py
===================================================================
--- django/branches/newforms-admin/tests/modeltests/invalid_models/models.py
2007-09-13 14:41:38 UTC (rev 6126)
+++ django/branches/newforms-admin/tests/modeltests/invalid_models/models.py
2007-09-13 18:00:23 UTC (rev 6127)
@@ -10,7 +10,6 @@
charfield = models.CharField()
decimalfield = models.DecimalField()
filefield = models.FileField()
- prepopulate = models.CharField(max_length=10, prepopulate_from='bad')
choices = models.CharField(max_length=10, choices='bad')
choices2 = models.CharField(max_length=10, choices=[(1,2,3),(1,2,3)])
index = models.CharField(max_length=10, db_index='bad')
@@ -111,7 +110,6 @@
invalid_models.fielderrors: "decimalfield": DecimalFields require a
"decimal_places" attribute.
invalid_models.fielderrors: "decimalfield": DecimalFields require a
"max_digits" attribute.
invalid_models.fielderrors: "filefield": FileFields require an "upload_to"
attribute.
-invalid_models.fielderrors: "prepopulate": prepopulate_from should be a list
or tuple.
invalid_models.fielderrors: "choices": "choices" should be iterable (e.g., a
tuple or list).
invalid_models.fielderrors: "choices2": "choices" should be a sequence of
two-tuples.
invalid_models.fielderrors: "choices2": "choices" should be a sequence of
two-tuples.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---