Rappel Modele
[auf_savoirs_en_partage_django.git] / auf_savoirs_en_partage / rappels / migrations / 0003_auto__add_rappelmodele.py
1 # encoding: 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 class Migration(SchemaMigration):
8
9 def forwards(self, orm):
10
11 # Adding model 'RappelModele'
12 db.create_table('rappels_rappelmodele', (
13 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
14 ('nom', self.gf('django.db.models.fields.CharField')(max_length=100)),
15 ('sujet', self.gf('django.db.models.fields.CharField')(max_length=255)),
16 ('contenu', self.gf('django.db.models.fields.TextField')()),
17 ))
18 db.send_create_signal('rappels', ['RappelModele'])
19
20
21 def backwards(self, orm):
22
23 # Deleting model 'RappelModele'
24 db.delete_table('rappels_rappelmodele')
25
26
27 models = {
28 'auth.group': {
29 'Meta': {'object_name': 'Group'},
30 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
31 'name': ('django.db.models.fields.CharField', [], {'max_length': '80', 'unique': 'True'}),
32 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
33 },
34 'auth.permission': {
35 'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
36 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
37 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
38 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
39 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
40 },
41 'auth.user': {
42 'Meta': {'object_name': 'User'},
43 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
44 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
45 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
46 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
47 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
48 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
49 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
50 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
51 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
52 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
53 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
54 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
55 'username': ('django.db.models.fields.CharField', [], {'max_length': '30', 'unique': 'True'})
56 },
57 'contenttypes.contenttype': {
58 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
59 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
60 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
61 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
62 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
63 },
64 'rappels.rappel': {
65 'Meta': {'object_name': 'Rappel'},
66 'contenu': ('django.db.models.fields.TextField', [], {}),
67 'date_cible': ('django.db.models.fields.DateField', [], {}),
68 'date_creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
69 'date_limite': ('django.db.models.fields.DateField', [], {}),
70 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
71 'sujet': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
72 'user_creation': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"})
73 },
74 'rappels.rappelmodele': {
75 'Meta': {'object_name': 'RappelModele'},
76 'contenu': ('django.db.models.fields.TextField', [], {}),
77 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
78 'nom': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
79 'sujet': ('django.db.models.fields.CharField', [], {'max_length': '255'})
80 },
81 'rappels.rappeluser': {
82 'Meta': {'object_name': 'RappelUser'},
83 'date_envoi': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
84 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
85 'rappel': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['rappels.Rappel']"}),
86 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"})
87 }
88 }
89
90 complete_apps = ['rappels']