mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-25 19:14:01 +03:00
10 lines
177 B
Python
10 lines
177 B
Python
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)
|