aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/tests/models.py
diff options
context:
space:
mode:
authorTom Christie2012-10-04 09:19:10 +0100
committerTom Christie2012-10-04 09:19:10 +0100
commitf8edfa26759bd9922b674625cee5921c163ed40e (patch)
tree1ba02f36087c2fbe22ab949c00a6a6a4caf394a4 /rest_framework/tests/models.py
parentbcd2caf5598a71cb468d86b6f286e180d1bf0a19 (diff)
downloaddjango-rest-framework-f8edfa26759bd9922b674625cee5921c163ed40e.tar.bz2
Abstract out the app_label on test models
Diffstat (limited to 'rest_framework/tests/models.py')
-rw-r--r--rest_framework/tests/models.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/rest_framework/tests/models.py b/rest_framework/tests/models.py
index c5636f35..6cc2c311 100644
--- a/rest_framework/tests/models.py
+++ b/rest_framework/tests/models.py
@@ -28,7 +28,7 @@ from django.db import models
# 'pk': self.id
# })
-class RestFrameworkModel(models.Model):
+class RESTFrameworkModel(models.Model):
"""
Base for test models that sets app_label, so they play nicely.
"""
@@ -37,13 +37,13 @@ class RestFrameworkModel(models.Model):
abstract = True
-class Anchor(RestFrameworkModel):
+class Anchor(RESTFrameworkModel):
text = models.CharField(max_length=100, default='anchor')
-class BasicModel(RestFrameworkModel):
+class BasicModel(RESTFrameworkModel):
text = models.CharField(max_length=100)
-class ManyToManyModel(RestFrameworkModel):
+class ManyToManyModel(RESTFrameworkModel):
rel = models.ManyToManyField(Anchor)