mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Merged the newforms-admin branch into trunk.
This is a backward incompatible change. The admin contrib app has been refactored. The newforms module has several improvements including FormSets and Media definitions. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7967 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
dc375fb0f3
commit
a19ed8aea3
121 changed files with 8050 additions and 2680 deletions
|
@ -5,12 +5,11 @@ This example exists purely to point out errors in models.
|
|||
"""
|
||||
|
||||
from django.db import models
|
||||
|
||||
model_errors = ""
|
||||
class FieldErrors(models.Model):
|
||||
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')
|
||||
|
@ -116,7 +115,6 @@ model_errors = """invalid_models.fielderrors: "charfield": CharFields require a
|
|||
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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue