Ticket #5427: invalid_models.diff
File invalid_models.diff, 1.3 KB (added by , 17 years ago) |
---|
-
tests/modeltests/invalid_models/models.py
10 10 charfield = models.CharField() 11 11 decimalfield = models.DecimalField() 12 12 filefield = models.FileField() 13 prepopulate = models.CharField(max_length=10, prepopulate_from='bad')14 13 choices = models.CharField(max_length=10, choices='bad') 15 14 choices2 = models.CharField(max_length=10, choices=[(1,2,3),(1,2,3)]) 16 15 index = models.CharField(max_length=10, db_index='bad') … … 111 110 invalid_models.fielderrors: "decimalfield": DecimalFields require a "decimal_places" attribute. 112 111 invalid_models.fielderrors: "decimalfield": DecimalFields require a "max_digits" attribute. 113 112 invalid_models.fielderrors: "filefield": FileFields require an "upload_to" attribute. 114 invalid_models.fielderrors: "prepopulate": prepopulate_from should be a list or tuple.115 113 invalid_models.fielderrors: "choices": "choices" should be iterable (e.g., a tuple or list). 116 114 invalid_models.fielderrors: "choices2": "choices" should be a sequence of two-tuples. 117 115 invalid_models.fielderrors: "choices2": "choices" should be a sequence of two-tuples.