diff options
Diffstat (limited to 'tests/models.py')
| -rw-r--r-- | tests/models.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/models.py b/tests/models.py index 32a726c0..6c8f2342 100644 --- a/tests/models.py +++ b/tests/models.py @@ -103,7 +103,7 @@ class BlogPostComment(RESTFrameworkModel): 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() @@ -168,3 +168,10 @@ class NullableOneToOneSource(RESTFrameworkModel): class BasicModelSerializer(serializers.ModelSerializer): class Meta: model = BasicModel + + +# Models to test filters +class FilterableItem(models.Model): + text = models.CharField(max_length=100) + decimal = models.DecimalField(max_digits=4, decimal_places=2) + date = models.DateField() |
