Ticket #10404: wherror.diff

File wherror.diff, 844 bytes (added by kmtracey, 6 years ago)
  • tests/modeltests/model_forms/models.py

     
    112112            return '%s/%s' % (path, filename)
    113113
    114114        description = models.CharField(max_length=20)
     115        width = models.IntegerField(editable=False)
     116        height = models.IntegerField(editable=False)
    115117        image = models.ImageField(storage=temp_storage, upload_to=custom_upload_path,
    116118                                  width_field='width', height_field='height')
    117         width = models.IntegerField(editable=False)
    118         height = models.IntegerField(editable=False)
    119119        path = models.CharField(max_length=16, blank=True, default='')
    120120
    121121        def __unicode__(self):
Back to Top