Nettoyage, 1ère passe…
[auf_paf.git] / paf / migrations / 0014_auto__add_diplomaobtained.py
CommitLineData
0ba28d89 1# -*- coding: utf-8 -*-
2import datetime
3from south.db import db
4from south.v2 import SchemaMigration
5from django.db import models
6
7
8class Migration(SchemaMigration):
9
10 def forwards(self, orm):
11 # Adding model 'DiplomaObtained'
12 db.create_table('paf_diplomaobtained', (
13 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
14 ('university', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['paf.University'])),
15 ('level', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['paf.Level'])),
16 ('entitle', self.gf('django.db.models.fields.CharField')(max_length=200)),
17 ('year', self.gf('django.db.models.fields.PositiveIntegerField')()),
18 ('student', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['paf.Student'])),
19 ))
20 db.send_create_signal('paf', ['DiplomaObtained'])
21
22
23 def backwards(self, orm):
24 # Deleting model 'DiplomaObtained'
25 db.delete_table('paf_diplomaobtained')
26
27
28 models = {
29 'paf.currentacademic': {
30 'Meta': {'object_name': 'CurrentAcademic'},
31 'certified': ('django.db.models.fields.NullBooleanField', [], {'null': 'True', 'blank': 'True'}),
32 'end_year': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'}),
33 'entry_year': ('django.db.models.fields.PositiveIntegerField', [], {}),
34 'faculty': ('smart_selects.db_fields.ChainedForeignKey', [], {'to': "orm['paf.Faculty']"}),
35 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
36 'level': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['paf.Level']"}),
37 'specialty': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
38 'student': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['paf.Student']", 'unique': 'True'}),
39 'university': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['paf.University']"})
40 },
41 'paf.diplomaobtained': {
42 'Meta': {'object_name': 'DiplomaObtained'},
43 'entitle': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
44 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
45 'level': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['paf.Level']"}),
46 'student': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['paf.Student']"}),
47 'university': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['paf.University']"}),
48 'year': ('django.db.models.fields.PositiveIntegerField', [], {})
49 },
50 'paf.faculty': {
51 'Meta': {'object_name': 'Faculty'},
52 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
53 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
54 'university': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['paf.University']"})
55 },
56 'paf.level': {
57 'Meta': {'object_name': 'Level'},
58 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
59 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
60 },
61 'paf.linguisticlevel': {
62 'Meta': {'object_name': 'LinguisticLevel'},
63 'delf_dalf': ('django.db.models.fields.CharField', [], {'max_length': '2', 'blank': 'True'}),
64 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
65 'other': ('django.db.models.fields.CharField', [], {'max_length': '1', 'blank': 'True'}),
66 'student': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['paf.Student']", 'unique': 'True'}),
67 'year_delf_dalf': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'}),
68 'year_other': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'})
69 },
70 'paf.student': {
71 'Meta': {'object_name': 'Student'},
72 'dob': ('django.db.models.fields.DateField', [], {}),
73 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
74 'firstname': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
75 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
76 'identifier': ('django.db.models.fields.CharField', [], {'max_length': '9', 'blank': 'True'}),
77 'lastname': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
78 'nationality': ('django.db.models.fields.CharField', [], {'max_length': '2'}),
79 'parent_address': ('django.db.models.fields.CharField', [], {'max_length': '120'}),
80 'parent_tel': ('django.db.models.fields.CharField', [], {'max_length': '20', 'blank': 'True'}),
81 'sex': ('django.db.models.fields.CharField', [], {'max_length': '1'}),
82 'tel': ('django.db.models.fields.CharField', [], {'max_length': '20'})
83 },
84 'paf.university': {
85 'Meta': {'object_name': 'University'},
86 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
87 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
88 }
89 }
90
91 complete_apps = ['paf']