fix
[prawokultury.git] / contact / migrations / 0001_initial.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 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')()),
19         ))
20         db.send_create_signal('contact', ['Contact'])
21
22
23     def backwards(self, orm):
24         # Deleting model 'Contact'
25         db.delete_table('contact_contact')
26
27
28     models = {
29         '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'})
37         }
38     }
39
40     complete_apps = ['contact']