Be more SSL-friendly.
[wolnelektury.git] / apps / libraries / migrations / 0003_auto__add_field_library_slug.py
1 # -*- coding: utf-8 -*-
2 import datetime
3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
6
7
8 class Migration(SchemaMigration):
9
10     def forwards(self, orm):
11         # Adding field 'Library.slug'
12         db.add_column(u'libraries_library', 'slug',
13                       self.gf('django.db.models.fields.SlugField')(max_length=120, unique=True, null=True),
14                       keep_default=False)
15
16
17     def backwards(self, orm):
18         # Deleting field 'Library.slug'
19         db.delete_column(u'libraries_library', 'slug')
20
21
22     models = {
23         u'libraries.catalog': {
24             'Meta': {'object_name': 'Catalog'},
25             u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
26             'name': ('django.db.models.fields.CharField', [], {'max_length': '120'}),
27             'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '120'})
28         },
29         u'libraries.library': {
30             'Meta': {'object_name': 'Library'},
31             'catalog': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'libraries'", 'on_delete': 'models.PROTECT', 'to': u"orm['libraries.Catalog']"}),
32             'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
33             u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
34             'name': ('django.db.models.fields.CharField', [], {'max_length': '120', 'blank': 'True'}),
35             'slug': ('django.db.models.fields.SlugField', [], {'max_length': '120', 'unique': 'True', 'null': 'True'}),
36             'url': ('django.db.models.fields.CharField', [], {'max_length': '120', 'blank': 'True'})
37         }
38     }
39
40     complete_apps = ['libraries']