1 # -*- coding: utf-8 -*-
3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
8 class Migration(SchemaMigration):
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),
17 def backwards(self, orm):
18 # Deleting field 'Library.slug'
19 db.delete_column(u'libraries_library', 'slug')
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'})
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'})
40 complete_apps = ['libraries']