diff options
| author | Pablo Recio | 2013-05-18 13:23:38 +0200 |
|---|---|---|
| committer | Pablo Recio | 2013-05-18 13:23:38 +0200 |
| commit | 8fe43236a22e56d1741b49b92f0c53e01cd9e5f6 (patch) | |
| tree | 845f6c301d3069b35a0587a843dc076c1b1e2226 /rest_framework/tests/models.py | |
| parent | 53a80044016c2ea0f4551735b0f974d1571d52ee (diff) | |
| download | django-rest-framework-8fe43236a22e56d1741b49b92f0c53e01cd9e5f6.tar.bz2 | |
Moved test model into closer to the testcase
Diffstat (limited to 'rest_framework/tests/models.py')
| -rw-r--r-- | rest_framework/tests/models.py | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/rest_framework/tests/models.py b/rest_framework/tests/models.py index 5d98b04b..40e41a64 100644 --- a/rest_framework/tests/models.py +++ b/rest_framework/tests/models.py @@ -117,32 +117,6 @@ class OptionalRelationModel(RESTFrameworkModel): other = models.ForeignKey('OptionalRelationModel', blank=True, null=True) -# Model for issue #725 -class SeveralChoicesModel(RESTFrameworkModel): - color = models.CharField( - max_length=10, - choices=[('red', 'Red'), ('green', 'Green'), ('blue', 'Blue')], - blank=False - ) - drink = models.CharField( - max_length=10, - choices=[('beer', 'Beer'), ('wine', 'Wine'), ('cider', 'Cider')], - blank=False, - default='beer' - ) - os = models.CharField( - max_length=10, - choices=[('linux', 'Linux'), ('osx', 'OSX'), ('windows', 'Windows')], - blank=True - ) - music_genre = models.CharField( - max_length=10, - choices=[('rock', 'Rock'), ('metal', 'Metal'), ('grunge', 'Grunge')], - blank=True, - default='metal' - ) - - # Model for RegexField class Book(RESTFrameworkModel): isbn = models.CharField(max_length=13) |
