mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-24 02:24:03 +03:00
9 lines
282 B
Python
9 lines
282 B
Python
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')
|