aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/tests/accounts/models.py
diff options
context:
space:
mode:
authorTom Christie2014-01-13 17:38:03 +0000
committerTom Christie2014-01-13 17:38:03 +0000
commite91d0a69ab404a79da1dd5d0806d33e972a1a09b (patch)
tree16b002eeed52d39b7d803cb62c606edbddd821e9 /rest_framework/tests/accounts/models.py
parentd937ce331cc6cd2df04a989b49cca030f65319da (diff)
parentc4d77667cf80588a2195fdc025bda53a5b977105 (diff)
downloaddjango-rest-framework-e91d0a69ab404a79da1dd5d0806d33e972a1a09b.tar.bz2
Merge branch 'testing-nested-serializers' of git://github.com/dustinfarris/django-rest-framework into dustinfarris-testing-nested-serializers
Diffstat (limited to 'rest_framework/tests/accounts/models.py')
-rw-r--r--rest_framework/tests/accounts/models.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/rest_framework/tests/accounts/models.py b/rest_framework/tests/accounts/models.py
new file mode 100644
index 00000000..525e601b
--- /dev/null
+++ b/rest_framework/tests/accounts/models.py
@@ -0,0 +1,8 @@
+from django.db import models
+
+from rest_framework.tests.users.models import User
+
+
+class Account(models.Model):
+ owner = models.ForeignKey(User, related_name='accounts_owned')
+ admins = models.ManyToManyField(User, blank=True, null=True, related_name='accounts_administered')