Ticket #10404: 10404_test.diff

File 10404_test.diff, 837 bytes (added by tclineks, 6 years ago)
  • tests/regressiontests/file_storage/models.py

    diff --git a/tests/regressiontests/file_storage/models.py b/tests/regressiontests/file_storage/models.py
    index 099c254..93bde2b 100644
    a b except ImportError: 
    2222if Image:
    2323    class Person(models.Model):
    2424        name = models.CharField(max_length=50)
     25        mug_height = models.PositiveSmallIntegerField()
     26        mug_width = models.PositiveSmallIntegerField()
    2527        mugshot = models.ImageField(storage=temp_storage, upload_to='tests',
    2628                                    height_field='mug_height',
    2729                                    width_field='mug_width')
    28         mug_height = models.PositiveSmallIntegerField()
    29         mug_width = models.PositiveSmallIntegerField()
    3030
    3131    __test__ = {'API_TESTS': """
    3232
Back to Top