mirror of
https://github.com/django/django.git
synced 2024-11-28 21:43:13 +01: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)
|