Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Enabled south and converted apps to use it

  • Loading branch information...
commit b9bd9306190c5bbfa5c5c427557fa3435d31d990 1 parent dbcc34f
@anttihirvonen authored
View
61 dotmembership/apps/billing/migrations/0001_initial.py
@@ -0,0 +1,61 @@
+# -*- 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 'Invoice'
+ db.create_table('billing_invoice', (
+ ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
+ ('member', self.gf('django.db.models.fields.related.ForeignKey')(related_name='invoices', to=orm['members.Member'])),
+ ('status', self.gf('django.db.models.fields.CharField')(default='created', max_length=15)),
+ ('for_year', self.gf('django.db.models.fields.IntegerField')()),
+ ('created', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
+ ('due_date', self.gf('django.db.models.fields.DateField')(blank=True)),
+ ('payment_date', self.gf('django.db.models.fields.DateField')(null=True, blank=True)),
+ ('payment_method', self.gf('django.db.models.fields.CharField')(max_length=15, null=True, blank=True)),
+ ('amount', self.gf('django.db.models.fields.DecimalField')(max_digits=7, decimal_places=2)),
+ ('reference_number', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
+ ))
+ db.send_create_signal('billing', ['Invoice'])
+
+
+ def backwards(self, orm):
+ # Deleting model 'Invoice'
+ db.delete_table('billing_invoice')
+
+
+ models = {
+ 'billing.invoice': {
+ 'Meta': {'object_name': 'Invoice'},
+ 'amount': ('django.db.models.fields.DecimalField', [], {'max_digits': '7', 'decimal_places': '2'}),
+ 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
+ 'due_date': ('django.db.models.fields.DateField', [], {'blank': 'True'}),
+ 'for_year': ('django.db.models.fields.IntegerField', [], {}),
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'member': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'invoices'", 'to': "orm['members.Member']"}),
+ 'payment_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
+ 'payment_method': ('django.db.models.fields.CharField', [], {'max_length': '15', 'null': 'True', 'blank': 'True'}),
+ 'reference_number': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
+ 'status': ('django.db.models.fields.CharField', [], {'default': "'created'", 'max_length': '15'})
+ },
+ 'members.member': {
+ 'Meta': {'object_name': 'Member'},
+ 'class_year': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
+ 'email': ('django.db.models.fields.EmailField', [], {'unique': 'True', 'max_length': '75'}),
+ 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30'}),
+ 'home_town': ('django.db.models.fields.CharField', [], {'max_length': '32'}),
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'joined': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
+ 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30'}),
+ 'major': ('django.db.models.fields.CharField', [], {'max_length': '64', 'blank': 'True'}),
+ 'membership_type': ('django.db.models.fields.CharField', [], {'default': "'normal'", 'max_length': '15'}),
+ 'school': ('django.db.models.fields.CharField', [], {'max_length': '64', 'blank': 'True'})
+ }
+ }
+
+ complete_apps = ['billing']
View
0  dotmembership/apps/billing/migrations/__init__.py
No changes.
View
48 dotmembership/apps/members/migrations/0001_initial.py
@@ -0,0 +1,48 @@
+# -*- 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 'Member'
+ db.create_table('members_member', (
+ ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
+ ('first_name', self.gf('django.db.models.fields.CharField')(max_length=30)),
+ ('last_name', self.gf('django.db.models.fields.CharField')(max_length=30)),
+ ('email', self.gf('django.db.models.fields.EmailField')(unique=True, max_length=75)),
+ ('home_town', self.gf('django.db.models.fields.CharField')(max_length=32)),
+ ('school', self.gf('django.db.models.fields.CharField')(max_length=64, blank=True)),
+ ('major', self.gf('django.db.models.fields.CharField')(max_length=64, blank=True)),
+ ('class_year', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
+ ('joined', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
+ ('membership_type', self.gf('django.db.models.fields.CharField')(default='normal', max_length=15)),
+ ))
+ db.send_create_signal('members', ['Member'])
+
+
+ def backwards(self, orm):
+ # Deleting model 'Member'
+ db.delete_table('members_member')
+
+
+ models = {
+ 'members.member': {
+ 'Meta': {'object_name': 'Member'},
+ 'class_year': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
+ 'email': ('django.db.models.fields.EmailField', [], {'unique': 'True', 'max_length': '75'}),
+ 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30'}),
+ 'home_town': ('django.db.models.fields.CharField', [], {'max_length': '32'}),
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'joined': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
+ 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30'}),
+ 'major': ('django.db.models.fields.CharField', [], {'max_length': '64', 'blank': 'True'}),
+ 'membership_type': ('django.db.models.fields.CharField', [], {'default': "'normal'", 'max_length': '15'}),
+ 'school': ('django.db.models.fields.CharField', [], {'max_length': '64', 'blank': 'True'})
+ }
+ }
+
+ complete_apps = ['members']
View
0  dotmembership/apps/members/migrations/__init__.py
No changes.
View
1  dotmembership/settings/base.py
@@ -140,6 +140,7 @@
'dotmembership.apps.billing',
'django.contrib.admin',
'reversion',
+ 'south',
'generic_confirmation',
'bootstrapform',
# Uncomment the next line to enable admin documentation:
Please sign in to comment.
Something went wrong with that request. Please try again.