Commit 0f974d09 authored by Ben Waters's avatar Ben Waters
Browse files

fix slug tags

parent 3eaf2b6f
......@@ -29,6 +29,8 @@ urlpatterns = patterns('stepup.views',
# organization
url(r'^organization/(?P<slug>[^\.]+)', 'organization', name = 'view_organization'),
url(r'^tag/(?P<slug>[^\.]+)', 'tag', name = 'view_tag'),
# comments
url(r'^comments/', include('django.contrib.comments.urls')),
......
......@@ -13,25 +13,6 @@ class Migration(SchemaMigration):
self.gf('django.db.models.fields.SlugField')(default=None, max_length=50),
keep_default=False)
# Adding M2M table for field attendees on 'Opportunity'
m2m_table_name = db.shorten_name(u'stepup_opportunity_attendees')
db.create_table(m2m_table_name, (
('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
('opportunity', models.ForeignKey(orm[u'stepup.opportunity'], null=False)),
('person', models.ForeignKey(orm[u'stepup.person'], null=False))
))
db.create_unique(m2m_table_name, ['opportunity_id', 'person_id'])
# Adding M2M table for field events on 'Person'
m2m_table_name = db.shorten_name(u'stepup_person_events')
db.create_table(m2m_table_name, (
('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
('person', models.ForeignKey(orm[u'stepup.person'], null=False)),
('opportunity', models.ForeignKey(orm[u'stepup.opportunity'], null=False))
))
db.create_unique(m2m_table_name, ['person_id', 'opportunity_id'])
def backwards(self, orm):
# Deleting field 'Tag.slug'
db.delete_column(u'stepup_tag', 'slug')
......@@ -149,4 +130,4 @@ class Migration(SchemaMigration):
}
}
complete_apps = ['stepup']
\ No newline at end of file
complete_apps = ['stepup']
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment