+++ /dev/null
-# -*- 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 'Poll'
- db.create_table(u'polls_poll', (
- (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
- ('question', self.gf('django.db.models.fields.TextField')()),
- ('slug', self.gf('django.db.models.fields.SlugField')(max_length=50)),
- ('open', self.gf('django.db.models.fields.BooleanField')(default=False)),
- ))
- db.send_create_signal(u'polls', ['Poll'])
-
- # Adding model 'PollItem'
- db.create_table(u'polls_pollitem', (
- (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
- ('poll', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['polls.Poll'])),
- ('content', self.gf('django.db.models.fields.TextField')()),
- ('vote_count', self.gf('django.db.models.fields.IntegerField')(default=0)),
- ))
- db.send_create_signal(u'polls', ['PollItem'])
-
-
- def backwards(self, orm):
- # Deleting model 'Poll'
- db.delete_table(u'polls_poll')
-
- # Deleting model 'PollItem'
- db.delete_table(u'polls_pollitem')
-
-
- models = {
- u'polls.poll': {
- 'Meta': {'object_name': 'Poll'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'open': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'question': ('django.db.models.fields.TextField', [], {}),
- 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50'})
- },
- u'polls.pollitem': {
- 'Meta': {'object_name': 'PollItem'},
- 'content': ('django.db.models.fields.TextField', [], {}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'poll': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['polls.Poll']"}),
- 'vote_count': ('django.db.models.fields.IntegerField', [], {'default': '0'})
- }
- }
-
- complete_apps = ['polls']
\ No newline at end of file