mirror of
https://github.com/django/django.git
synced 2025-08-17 17:20:38 +00:00

Thanks to Collin Anderson for the suggestion and Tim Graham for
reviewing the patch.
Backport of 22c6497f99
from master
9 lines
285 B
Python
9 lines
285 B
Python
from django.db import models
|
|
|
|
class Book(models.Model):
|
|
title = models.CharField(max_length=250)
|
|
is_published = models.BooleanField(default=False)
|
|
|
|
class BlogPost(models.Model):
|
|
title = models.CharField(max_length=250)
|
|
is_published = models.BooleanField(default=False)
|