1 # -*- coding: utf-8 -*-
3 from south.db import db
4 from django.db import models
5 from catalogue.models import *
9 def forwards(self, orm):
11 # Adding model 'BookStub'
12 db.create_table('catalogue_bookstub', (
13 ('id', orm['catalogue.BookStub:id']),
14 ('title', orm['catalogue.BookStub:title']),
15 ('author', orm['catalogue.BookStub:author']),
16 ('pd', orm['catalogue.BookStub:pd']),
17 ('slug', orm['catalogue.BookStub:slug']),
18 ('translator', orm['catalogue.BookStub:translator']),
19 ('translator_death', orm['catalogue.BookStub:translator_death']),
21 db.send_create_signal('catalogue', ['BookStub'])
25 def backwards(self, orm):
27 # Deleting model 'BookStub'
28 db.delete_table('catalogue_bookstub')
34 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
35 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
36 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'})
39 'Meta': {'unique_together': "(('content_type', 'codename'),)"},
40 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
41 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
42 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
43 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
46 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
47 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
48 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
49 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'blank': 'True'}),
50 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
51 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
52 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
53 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
54 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
55 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
56 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
57 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}),
58 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
61 '_short_html': ('django.db.models.fields.TextField', [], {}),
62 'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
63 'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
64 'extra_info': ('JSONField', ["_('extra information')"], {}),
65 'gazeta_link': ('django.db.models.fields.CharField', [], {'max_length': '240', 'blank': 'True'}),
66 'html_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'blank': 'True'}),
67 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
68 'mp3_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'blank': 'True'}),
69 'odt_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'blank': 'True'}),
70 'ogg_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'blank': 'True'}),
71 'parent': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'children'", 'null': 'True', 'to': "orm['catalogue.Book']"}),
72 'parent_number': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
73 'pdf_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'blank': 'True'}),
74 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '120', 'db_index': 'True'}),
75 'title': ('django.db.models.fields.CharField', [], {'max_length': '120'}),
76 'txt_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'blank': 'True'}),
77 'wiki_link': ('django.db.models.fields.CharField', [], {'max_length': '240', 'blank': 'True'}),
78 'xml_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'blank': 'True'})
80 'catalogue.bookstub': {
81 'author': ('django.db.models.fields.CharField', [], {'max_length': '120'}),
82 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
83 'pd': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
84 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '120', 'db_index': 'True'}),
85 'title': ('django.db.models.fields.CharField', [], {'max_length': '120'}),
86 'translator': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
87 'translator_death': ('django.db.models.fields.TextField', [], {'blank': 'True'})
89 'catalogue.fragment': {
90 '_short_html': ('django.db.models.fields.TextField', [], {}),
91 'anchor': ('django.db.models.fields.CharField', [], {'max_length': '120'}),
92 'book': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'fragments'", 'to': "orm['catalogue.Book']"}),
93 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
94 'short_text': ('django.db.models.fields.TextField', [], {}),
95 'text': ('django.db.models.fields.TextField', [], {})
98 'book_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
99 'category': ('django.db.models.fields.CharField', [], {'max_length': '50', 'db_index': 'True'}),
100 'death': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
101 'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
102 'gazeta_link': ('django.db.models.fields.CharField', [], {'max_length': '240', 'blank': 'True'}),
103 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
104 'main_page': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'db_index': 'True', 'blank': 'True'}),
105 'name': ('django.db.models.fields.CharField', [], {'max_length': '50', 'db_index': 'True'}),
106 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '120', 'db_index': 'True'}),
107 'sort_key': ('django.db.models.fields.SlugField', [], {'max_length': '120', 'db_index': 'True'}),
108 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']", 'null': 'True', 'blank': 'True'}),
109 'wiki_link': ('django.db.models.fields.CharField', [], {'max_length': '240', 'blank': 'True'})
111 'catalogue.tagrelation': {
112 'Meta': {'unique_together': "(('tag', 'content_type', 'object_id'),)", 'db_table': "'catalogue_tag_relation'"},
113 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
114 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
115 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
116 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'items'", 'to': "orm['catalogue.Tag']"})
118 'contenttypes.contenttype': {
119 'Meta': {'unique_together': "(('app_label', 'model'),)", 'db_table': "'django_content_type'"},
120 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
121 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
122 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
123 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
127 complete_apps = ['catalogue']