2013-08-12 04:19:09 +08:00
|
|
|
from django.db import models
|
|
|
|
|
2013-11-03 12:36:09 +08:00
|
|
|
|
2013-08-12 04:19:09 +08:00
|
|
|
class Book(models.Model):
|
|
|
|
title = models.CharField(max_length=250)
|
|
|
|
is_published = models.BooleanField(default=False)
|
|
|
|
|
2013-11-03 12:36:09 +08:00
|
|
|
|
2013-08-12 04:19:09 +08:00
|
|
|
class BlogPost(models.Model):
|
|
|
|
title = models.CharField(max_length=250)
|
|
|
|
is_published = models.BooleanField(default=False)
|