2014-01-20 02:45:21 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
2013-08-11 20:19:09 +00:00
|
|
|
from django.db import models
|
|
|
|
|
2013-11-03 04:36:09 +00:00
|
|
|
|
2014-01-20 02:45:21 +00:00
|
|
|
class SimpleModel(models.Model):
|
|
|
|
field = models.IntegerField()
|
|
|
|
manager = models.manager.Manager()
|
|
|
|
|
|
|
|
|
2013-08-11 20:19:09 +00:00
|
|
|
class Book(models.Model):
|
|
|
|
title = models.CharField(max_length=250)
|
|
|
|
is_published = models.BooleanField(default=False)
|
|
|
|
|
2013-11-03 04:36:09 +00:00
|
|
|
|
2013-08-11 20:19:09 +00:00
|
|
|
class BlogPost(models.Model):
|
|
|
|
title = models.CharField(max_length=250)
|
|
|
|
is_published = models.BooleanField(default=False)
|