[a75ed9b] | 1 | |
---|
| 2 | from south.db import db |
---|
| 3 | from django.db import models |
---|
| 4 | from vouchers.models import * |
---|
| 5 | |
---|
| 6 | class Migration: |
---|
| 7 | |
---|
| 8 | def forwards(self, orm): |
---|
| 9 | |
---|
| 10 | # Adding field 'Documentation.submitter' |
---|
| 11 | db.add_column('vouchers_documentation', 'submitter', orm['vouchers.documentation:submitter']) |
---|
| 12 | |
---|
| 13 | # Adding field 'Documentation.upload_time' |
---|
| 14 | db.add_column('vouchers_documentation', 'upload_time', orm['vouchers.documentation:upload_time']) |
---|
| 15 | |
---|
| 16 | |
---|
| 17 | |
---|
| 18 | def backwards(self, orm): |
---|
| 19 | |
---|
| 20 | # Deleting field 'Documentation.submitter' |
---|
| 21 | db.delete_column('vouchers_documentation', 'submitter') |
---|
| 22 | |
---|
| 23 | # Deleting field 'Documentation.upload_time' |
---|
| 24 | db.delete_column('vouchers_documentation', 'upload_time') |
---|
| 25 | |
---|
| 26 | |
---|
| 27 | |
---|
| 28 | models = { |
---|
| 29 | 'finance_core.budgetarea': { |
---|
| 30 | 'account_number': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}), |
---|
| 31 | 'always': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), |
---|
| 32 | 'budget_term': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['finance_core.BudgetTerm']"}), |
---|
| 33 | 'comment': ('django.db.models.fields.TextField', [], {'blank': 'True'}), |
---|
| 34 | 'depth': ('django.db.models.fields.PositiveIntegerField', [], {}), |
---|
| 35 | 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
---|
| 36 | 'interested': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), |
---|
| 37 | 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}), |
---|
| 38 | 'numchild': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), |
---|
| 39 | 'owner': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), |
---|
| 40 | 'path': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), |
---|
| 41 | 'use_owner': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}) |
---|
| 42 | }, |
---|
| 43 | 'finance_core.budgetterm': { |
---|
| 44 | 'end_date': ('django.db.models.fields.DateField', [], {}), |
---|
| 45 | 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
---|
| 46 | 'name': ('django.db.models.fields.CharField', [], {'max_length': '20'}), |
---|
| 47 | 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '20', 'db_index': 'True'}), |
---|
| 48 | 'start_date': ('django.db.models.fields.DateField', [], {}), |
---|
| 49 | 'submit_deadline': ('django.db.models.fields.DateField', [], {}) |
---|
| 50 | }, |
---|
| 51 | 'vouchers.documentation': { |
---|
| 52 | 'backing_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}), |
---|
| 53 | 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
---|
| 54 | 'label': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '50'}), |
---|
| 55 | 'submitter': ('django.db.models.fields.CharField', [], {'max_length': '10', 'null': 'True'}), |
---|
| 56 | 'upload_time': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}) |
---|
| 57 | }, |
---|
| 58 | 'vouchers.reimbursementrequest': { |
---|
| 59 | 'amount': ('django.db.models.fields.DecimalField', [], {'max_digits': '7', 'decimal_places': '2'}), |
---|
| 60 | 'approval_status': ('django.db.models.fields.IntegerField', [], {'default': '0'}), |
---|
| 61 | 'approval_time': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), |
---|
| 62 | 'budget_area': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'as_budget_area'", 'to': "orm['finance_core.BudgetArea']"}), |
---|
| 63 | 'budget_term': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['finance_core.BudgetTerm']"}), |
---|
| 64 | 'check_to_addr': ('django.db.models.fields.TextField', [], {'blank': 'True'}), |
---|
| 65 | 'check_to_email': ('django.db.models.fields.EmailField', [], {'max_length': '75'}), |
---|
| 66 | 'check_to_first_name': ('django.db.models.fields.CharField', [], {'max_length': '50'}), |
---|
| 67 | 'check_to_last_name': ('django.db.models.fields.CharField', [], {'max_length': '50'}), |
---|
| 68 | 'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}), |
---|
| 69 | 'documentation': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['vouchers.Documentation']", 'null': 'True'}), |
---|
| 70 | 'expense_area': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'as_expense_area'", 'to': "orm['finance_core.BudgetArea']"}), |
---|
| 71 | 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
---|
| 72 | 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}), |
---|
| 73 | 'printing_time': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), |
---|
| 74 | 'request_time': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), |
---|
| 75 | 'submitter': ('django.db.models.fields.CharField', [], {'max_length': '10'}) |
---|
| 76 | }, |
---|
| 77 | 'vouchers.voucher': { |
---|
| 78 | 'account': ('django.db.models.fields.IntegerField', [], {}), |
---|
| 79 | 'amount': ('django.db.models.fields.DecimalField', [], {'max_digits': '7', 'decimal_places': '2'}), |
---|
| 80 | 'description': ('django.db.models.fields.TextField', [], {}), |
---|
| 81 | 'documentation': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['vouchers.Documentation']", 'null': 'True'}), |
---|
| 82 | 'email_address': ('django.db.models.fields.EmailField', [], {'max_length': '50'}), |
---|
| 83 | 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '20'}), |
---|
| 84 | 'gl': ('django.db.models.fields.IntegerField', [], {}), |
---|
| 85 | 'group_name': ('django.db.models.fields.CharField', [], {'max_length': '10'}), |
---|
| 86 | 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
---|
| 87 | 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '20'}), |
---|
| 88 | 'mailing_address': ('django.db.models.fields.TextField', [], {}), |
---|
| 89 | 'processed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), |
---|
| 90 | 'signatory': ('django.db.models.fields.CharField', [], {'max_length': '50'}), |
---|
| 91 | 'signatory_email': ('django.db.models.fields.EmailField', [], {'max_length': '75'}) |
---|
| 92 | } |
---|
| 93 | } |
---|
| 94 | |
---|
| 95 | complete_apps = ['vouchers'] |
---|