X-Git-Url: https://git.mdrn.pl/edumed.git/blobdiff_plain/e76acb4ea49713c4390342ccbdf8f3a5a71f8aee..d12ee4e0ec425e7f508c93ad1295a21a67ae1a30:/contact/migrations/0001_initial.py diff --git a/contact/migrations/0001_initial.py b/contact/migrations/0001_initial.py new file mode 100644 index 0000000..d16bf4c --- /dev/null +++ b/contact/migrations/0001_initial.py @@ -0,0 +1,40 @@ +# -*- coding: utf-8 -*- +import datetime +from south.db import db +from south.v2 import SchemaMigration +from django.db import models + + +class Migration(SchemaMigration): + + def forwards(self, orm): + # Adding model 'Contact' + db.create_table('contact_contact', ( + ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), + ('created_at', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)), + ('ip', self.gf('django.db.models.fields.IPAddressField')(max_length=15)), + ('contact', self.gf('django.db.models.fields.CharField')(max_length=128)), + ('form_tag', self.gf('django.db.models.fields.CharField')(max_length=32)), + ('body', self.gf('jsonfield.fields.JSONField')()), + )) + db.send_create_signal('contact', ['Contact']) + + + def backwards(self, orm): + # Deleting model 'Contact' + db.delete_table('contact_contact') + + + models = { + 'contact.contact': { + 'Meta': {'ordering': "('-created_at',)", 'object_name': 'Contact'}, + 'body': ('jsonfield.fields.JSONField', [], {}), + 'contact': ('django.db.models.fields.CharField', [], {'max_length': '128'}), + 'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}), + 'form_tag': ('django.db.models.fields.CharField', [], {'max_length': '32'}), + 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), + 'ip': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'}) + } + } + + complete_apps = ['contact'] \ No newline at end of file