b98064e14927fae61a950e06cd4f19c94d56c831
[auf_paf.git] / paf / migrations / 0002_auto__add_linguisticlevel__add_student.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 'LinguisticLevel'
12 db.create_table('paf_linguisticlevel', (
13 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
14 ('delf_dalf', self.gf('django.db.models.fields.CharField')(max_length=2, blank=True)),
15 ('year_delf_dalf', self.gf('django.db.models.fields.PositiveIntegerField')(null=True, blank=True)),
16 ('other', self.gf('django.db.models.fields.CharField')(max_length=1, blank=True)),
17 ('year_other', self.gf('django.db.models.fields.PositiveIntegerField')(null=True, blank=True)),
18 ('student', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['paf.Student'], unique=True)),
19 ))
20 db.send_create_signal('paf', ['LinguisticLevel'])
21
22 # Adding model 'Student'
23 db.create_table('paf_student', (
24 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
25 ('lastname', self.gf('django.db.models.fields.CharField')(max_length=50)),
26 ('firstname', self.gf('django.db.models.fields.CharField')(max_length=50)),
27 ('nationality', self.gf('django.db.models.fields.CharField')(max_length=2)),
28 ('sex', self.gf('django.db.models.fields.CharField')(max_length=1)),
29 ('dob', self.gf('django.db.models.fields.DateField')()),
30 ('email', self.gf('django.db.models.fields.EmailField')(max_length=75, blank=True)),
31 ('tel', self.gf('django.db.models.fields.CharField')(max_length=20)),
32 ('parent_tel', self.gf('django.db.models.fields.CharField')(max_length=20, blank=True)),
33 ('parent_address', self.gf('django.db.models.fields.CharField')(max_length=120)),
34 ('user', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['auth.User'], unique=True)),
35 ))
36 db.send_create_signal('paf', ['Student'])
37
38
39 def backwards(self, orm):
40 # Deleting model 'LinguisticLevel'
41 db.delete_table('paf_linguisticlevel')
42
43 # Deleting model 'Student'
44 db.delete_table('paf_student')
45
46
47 models = {
48 'auth.group': {
49 'Meta': {'object_name': 'Group'},
50 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
51 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
52 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
53 },
54 'auth.permission': {
55 'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
56 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
57 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
58 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
59 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
60 },
61 'auth.user': {
62 'Meta': {'object_name': 'User'},
63 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
64 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
65 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
66 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
67 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
68 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
69 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
70 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
71 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
72 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
73 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
74 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
75 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
76 },
77 'contenttypes.contenttype': {
78 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
79 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
80 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
81 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
82 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
83 },
84 'paf.linguisticlevel': {
85 'Meta': {'object_name': 'LinguisticLevel'},
86 'delf_dalf': ('django.db.models.fields.CharField', [], {'max_length': '2', 'blank': 'True'}),
87 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
88 'other': ('django.db.models.fields.CharField', [], {'max_length': '1', 'blank': 'True'}),
89 'student': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['paf.Student']", 'unique': 'True'}),
90 'year_delf_dalf': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'}),
91 'year_other': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'})
92 },
93 'paf.student': {
94 'Meta': {'object_name': 'Student'},
95 'dob': ('django.db.models.fields.DateField', [], {}),
96 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
97 'firstname': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
98 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
99 'lastname': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
100 'nationality': ('django.db.models.fields.CharField', [], {'max_length': '2'}),
101 'parent_address': ('django.db.models.fields.CharField', [], {'max_length': '120'}),
102 'parent_tel': ('django.db.models.fields.CharField', [], {'max_length': '20', 'blank': 'True'}),
103 'sex': ('django.db.models.fields.CharField', [], {'max_length': '1'}),
104 'tel': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
105 'user': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True'})
106 }
107 }
108
109 complete_apps = ['paf']