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

7 lines
233 B
Python
Raw Normal View History

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)