aboutsummaryrefslogtreecommitdiffstats
path: root/tests/browsable_api/models.py
blob: 05c6c23b43c9b55d8e796f164bee9ab3d68e3c40 (plain)
1
2
3
4
5
6
7
8
9
from django.db import models


class Foo(models.Model):
    name = models.CharField(max_length=30)


class Bar(models.Model):
    foo = models.ForeignKey("Foo", editable=False)