aboutsummaryrefslogtreecommitdiffstats
path: root/tests/accounts/models.py
blob: 3bf4a0c3cbd779bbf4aa02945eb07b057ba5660b (plain)
1
2
3
4
5
6
7
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')