mirror of
https://github.com/django/django.git
synced 2024-12-28 20:16:19 +00:00
22c6497f99
Thanks to Collin Anderson for the suggestion and Tim Graham for reviewing the patch.
10 lines
285 B
Python
10 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)
|