--- /dev/null
+# -*- coding: utf-8 -*-
+from south.db import db
+from django.db import models
+
+
+class Migration:
+ def forwards(self):
+ db.add_column('catalogue_tag', 'wiki_link', models.CharField(blank=True, max_length=240))
+ db.add_column('catalogue_book', 'wiki_link', models.CharField(blank=True, max_length=240))
+
+ def backwards(self):
+ db.delete_column('catalogue_tag', 'wiki_link')
+ db.delete_column('catalogue_book', 'wiki_link')
user = models.ForeignKey(User, blank=True, null=True)
book_count = models.IntegerField(_('book count'), default=0, blank=False, null=False)
gazeta_link = models.CharField(blank=True, max_length=240)
+ wiki_link = models.CharField(blank=True, max_length=240)
def has_description(self):
return len(self.description) > 0
parent_number = models.IntegerField(_('parent number'), default=0)
extra_info = JSONField(_('extra information'))
gazeta_link = models.CharField(blank=True, max_length=240)
+ wiki_link = models.CharField(blank=True, max_length=240)
+
# Formats
xml_file = models.FileField(_('XML file'), upload_to=book_upload_path('xml'), blank=True)