django-rest-framework/rest_framework/tests/users/models.py

7 lines
233 B
Python

from django.db import models
class User(models.Model):
account = models.ForeignKey('accounts.Account', blank=True, null=True, related_name='users')
active_record = models.ForeignKey('records.Record', blank=True, null=True)