3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
7 class Migration(SchemaMigration):
9 def forwards(self, orm):
11 # Adding model 'ICalendarFeedView'
12 db.create_table('julian_icalendarfeedview', (
13 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
14 ('feed_type', self.gf('django.db.models.fields.CharField')(default='application/atom+xml', max_length=50)),
15 ('feed_suffix', self.gf('django.db.models.fields.CharField')(default='feed', max_length=255)),
16 ('feeds_enabled', self.gf('django.db.models.fields.BooleanField')(default=True, blank=True)),
17 ('item_title_template', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='julian_icalendarfeedview_title_related', null=True, to=orm['philo.Template'])),
18 ('item_description_template', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='julian_icalendarfeedview_description_related', null=True, to=orm['philo.Template'])),
19 ('calendar', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['julian.Calendar'])),
21 db.send_create_signal('julian', ['ICalendarFeedView'])
24 def backwards(self, orm):
26 # Deleting model 'ICalendarFeedView'
27 db.delete_table('julian_icalendarfeedview')
32 'Meta': {'object_name': 'Group'},
33 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
34 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
35 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
38 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
39 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
40 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
41 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
42 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
45 'Meta': {'object_name': 'User'},
46 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
47 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
48 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
49 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
50 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
51 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
52 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
53 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
54 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
55 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
56 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
57 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
58 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
60 'contenttypes.contenttype': {
61 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
62 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
63 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
64 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
65 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
68 'Meta': {'object_name': 'Calendar'},
69 'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
70 'events': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'calendars'", 'symmetrical': 'False', 'to': "orm['julian.Event']"}),
71 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
72 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
73 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '100', 'db_index': 'True'}),
74 'uuid': ('django.db.models.fields.TextField', [], {'unique': 'True'})
77 'Meta': {'object_name': 'Event'},
78 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
79 'description': ('philo.models.fields.TemplateField', [], {}),
80 'end_date': ('django.db.models.fields.DateField', [], {}),
81 'end_time': ('django.db.models.fields.TimeField', [], {'null': 'True', 'blank': 'True'}),
82 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
83 'last_modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
84 'location_content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
85 'location_pk': ('django.db.models.fields.TextField', [], {}),
86 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
87 'owner': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"}),
88 'parent_event': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['julian.Event']", 'null': 'True', 'blank': 'True'}),
89 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '255', 'db_index': 'True'}),
90 'start_date': ('django.db.models.fields.DateField', [], {}),
91 'start_time': ('django.db.models.fields.TimeField', [], {'null': 'True', 'blank': 'True'}),
92 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'to': "orm['philo.Tag']", 'null': 'True', 'blank': 'True'}),
93 'uuid': ('django.db.models.fields.TextField', [], {})
95 'julian.icalendarfeedview': {
96 'Meta': {'object_name': 'ICalendarFeedView'},
97 'calendar': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['julian.Calendar']"}),
98 'feed_suffix': ('django.db.models.fields.CharField', [], {'default': "'feed'", 'max_length': '255'}),
99 'feed_type': ('django.db.models.fields.CharField', [], {'default': "'application/atom+xml'", 'max_length': '50'}),
100 'feeds_enabled': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
101 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
102 'item_description_template': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'julian_icalendarfeedview_description_related'", 'null': 'True', 'to': "orm['philo.Template']"}),
103 'item_title_template': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'julian_icalendarfeedview_title_related'", 'null': 'True', 'to': "orm['philo.Template']"})
106 'Meta': {'object_name': 'Location'},
107 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
108 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'})
111 'Meta': {'unique_together': "(('key', 'entity_content_type', 'entity_object_id'), ('value_content_type', 'value_object_id'))", 'object_name': 'Attribute'},
112 'entity_content_type': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'attribute_entity_set'", 'to': "orm['contenttypes.ContentType']"}),
113 'entity_object_id': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
114 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
115 'key': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}),
116 'value_content_type': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attribute_value_set'", 'null': 'True', 'to': "orm['contenttypes.ContentType']"}),
117 'value_object_id': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'})
120 'Meta': {'object_name': 'Node'},
121 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
122 'level': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
123 'lft': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
124 'parent': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'children'", 'null': 'True', 'to': "orm['philo.Node']"}),
125 'rght': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
126 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '255', 'db_index': 'True'}),
127 'tree_id': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
128 'view_content_type': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'node_view_set'", 'to': "orm['contenttypes.ContentType']"}),
129 'view_object_id': ('django.db.models.fields.PositiveIntegerField', [], {})
132 'Meta': {'object_name': 'Tag'},
133 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
134 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
135 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '255', 'db_index': 'True'})
138 'Meta': {'object_name': 'Template'},
139 'code': ('philo.models.fields.TemplateField', [], {}),
140 'documentation': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
141 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
142 'level': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
143 'lft': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
144 'mimetype': ('django.db.models.fields.CharField', [], {'default': "'text/html'", 'max_length': '255'}),
145 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
146 'parent': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'children'", 'null': 'True', 'to': "orm['philo.Template']"}),
147 'rght': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
148 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '255', 'db_index': 'True'}),
149 'tree_id': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'})
153 complete_apps = ['julian']