diff options
Diffstat (limited to 'rest_framework/tests/accounts/models.py')
| -rw-r--r-- | rest_framework/tests/accounts/models.py | 8 |
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') |
