mirror of
https://github.com/django/django.git
synced 2024-12-27 03:25:58 +00:00
309c10c2cb
The is_iterator() function was removed in 2456ffa42c
.
10 lines
203 B
Python
10 lines
203 B
Python
from django.db import models
|
|
|
|
|
|
class Category(models.Model):
|
|
name = models.CharField(max_length=100)
|
|
|
|
|
|
class CategoryInfo(models.Model):
|
|
category = models.OneToOneField(Category, models.CASCADE)
|