Django

Code

Show
Ignore:
Timestamp:
07/18/08 18:54:34 (4 months ago)
Author:
brosner
Message:

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.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/tests/modeltests/invalid_models/models.py

    r6835 r7967  
    66 
    77from django.db import models 
    8  
     8model_errors = "" 
    99class FieldErrors(models.Model): 
    1010    charfield = models.CharField() 
    1111    decimalfield = models.DecimalField() 
    1212    filefield = models.FileField() 
    13     prepopulate = models.CharField(max_length=10, prepopulate_from='bad') 
    1413    choices = models.CharField(max_length=10, choices='bad') 
    1514    choices2 = models.CharField(max_length=10, choices=[(1,2,3),(1,2,3)]) 
     
    117116invalid_models.fielderrors: "decimalfield": DecimalFields require a "max_digits" attribute. 
    118117invalid_models.fielderrors: "filefield": FileFields require an "upload_to" attribute. 
    119 invalid_models.fielderrors: "prepopulate": prepopulate_from should be a list or tuple. 
    120118invalid_models.fielderrors: "choices": "choices" should be iterable (e.g., a tuple or list). 
    121119invalid_models.fielderrors: "choices2": "choices" should be a sequence of two-tuples.