diff options
| author | Marko Tibold | 2012-11-22 22:36:37 +0100 |
|---|---|---|
| committer | Marko Tibold | 2012-11-22 22:36:37 +0100 |
| commit | ca5b99486d15e7392754178ab0948de2a60763a3 (patch) | |
| tree | cf008509ba728e207ebfc74801e95ab2661d9943 /rest_framework/tests/models.py | |
| parent | ac84c2ed2e3571b918f6c995a8f753e86c8126f1 (diff) | |
| download | django-rest-framework-ca5b99486d15e7392754178ab0948de2a60763a3.tar.bz2 | |
Added _post_clean() behaviour by adding a .perform_model_validation() method.
Fixed some tests that were failing due to extra strict validation.
Diffstat (limited to 'rest_framework/tests/models.py')
| -rw-r--r-- | rest_framework/tests/models.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rest_framework/tests/models.py b/rest_framework/tests/models.py index c35861c6..9a59e841 100644 --- a/rest_framework/tests/models.py +++ b/rest_framework/tests/models.py @@ -61,7 +61,7 @@ class BasicModel(RESTFrameworkModel): class SlugBasedModel(RESTFrameworkModel): text = models.CharField(max_length=100) - slug = models.SlugField(max_length=32) + slug = models.SlugField(max_length=32, blank=True) class DefaultValueModel(RESTFrameworkModel): @@ -159,7 +159,7 @@ class Person(RESTFrameworkModel): # Model for issue #324 class BlankFieldModel(RESTFrameworkModel): - title = models.CharField(max_length=100, blank=True) + title = models.CharField(max_length=100, blank=True, null=True) # Model for issue #380 |
