blob: f091783098037a95765d2464241c9b46caec3029 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
class SimpleModel(models.Model):
field = models.IntegerField()
manager = models.manager.Manager()
class Book(models.Model):
title = models.CharField(max_length=250)
is_published = models.BooleanField(default=False)
|