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 model 'Contact'
 
  12         db.create_table('contact_contact', (
 
  13             ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
 
  14             ('created_at', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
 
  15             ('ip', self.gf('django.db.models.fields.IPAddressField')(max_length=15)),
 
  16             ('contact', self.gf('django.db.models.fields.CharField')(max_length=128)),
 
  17             ('form_tag', self.gf('django.db.models.fields.CharField')(max_length=32)),
 
  18             ('body', self.gf('jsonfield.fields.JSONField')()),
 
  20         db.send_create_signal('contact', ['Contact'])
 
  23     def backwards(self, orm):
 
  24         # Deleting model 'Contact'
 
  25         db.delete_table('contact_contact')
 
  30             'Meta': {'ordering': "('-created_at',)", 'object_name': 'Contact'},
 
  31             'body': ('jsonfield.fields.JSONField', [], {}),
 
  32             'contact': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
 
  33             'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
 
  34             'form_tag': ('django.db.models.fields.CharField', [], {'max_length': '32'}),
 
  35             'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
 
  36             'ip': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'})
 
  40     complete_apps = ['contact']