aboutsummaryrefslogtreecommitdiffstats
path: root/tests/accounts/models.py
diff options
context:
space:
mode:
authorCarlton Gibson2014-06-24 10:30:08 +0200
committerCarlton Gibson2014-06-24 10:30:08 +0200
commitd98245ac2234c2377a6243f8314b31fd68c902af (patch)
tree5fa88ae09d97a25e20d0dbf254ad028ef4351bca /tests/accounts/models.py
parent3f727ce738776838d8420450ce28485954fbb097 (diff)
parent2489e38a06f575aa144644eee683bd87f20186ef (diff)
downloaddjango-rest-framework-d98245ac2234c2377a6243f8314b31fd68c902af.tar.bz2
Merge branch '2.4.0' of github.com:tomchristie/django-rest-framework into #1559
Conflicts: docs/topics/release-notes.md
Diffstat (limited to 'tests/accounts/models.py')
-rw-r--r--tests/accounts/models.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/accounts/models.py b/tests/accounts/models.py
new file mode 100644
index 00000000..3bf4a0c3
--- /dev/null
+++ b/tests/accounts/models.py
@@ -0,0 +1,8 @@
+from django.db import models
+
+from 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')