mirror of
https://github.com/django/django.git
synced 2024-11-18 07:26:04 +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)
|