diff options
Diffstat (limited to 'tests/models.py')
| -rw-r--r-- | tests/models.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/models.py b/tests/models.py index e171d3bd..fba3f8f7 100644 --- a/tests/models.py +++ b/tests/models.py @@ -105,6 +105,7 @@ class Album(RESTFrameworkModel): title = models.CharField(max_length=100, unique=True) ref = models.CharField(max_length=10, unique=True, null=True, blank=True) + class Photo(RESTFrameworkModel): description = models.TextField() album = models.ForeignKey(Album) @@ -112,7 +113,8 @@ class Photo(RESTFrameworkModel): # Model for issue #324 class BlankFieldModel(RESTFrameworkModel): - title = models.CharField(max_length=100, blank=True, null=False) + title = models.CharField(max_length=100, blank=True, null=False, + default="title") # Model for issue #380 |
