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