Skip to content
This repository was archived by the owner on Jul 7, 2019. It is now read-only.

Commit 28eaaec

Browse files
committed
Fix test failures and add migration.
1 parent a90f993 commit 28eaaec

File tree

2 files changed

+28
-2
lines changed

2 files changed

+28
-2
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Generated by Django 2.0.3 on 2018-03-30 07:22
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
('events', '0001_initial'),
10+
]
11+
12+
operations = [
13+
migrations.CreateModel(
14+
name='Tag',
15+
fields=[
16+
('display_name', models.CharField(help_text='The name of the tag that will be displayed to users.', max_length=256, unique=True, verbose_name='Event Tag')),
17+
('id', models.CharField(help_text='Unique ID of the tag.', max_length=256, primary_key=True, serialize=False, verbose_name='ID')),
18+
('is_disabled', models.BooleanField(default=True, help_text='Whether or not the tag is to be displayed.', verbose_name='Display')),
19+
],
20+
),
21+
migrations.AddField(
22+
model_name='event',
23+
name='tags',
24+
field=models.ManyToManyField(help_text='The name of the Tag that will be displayed to users', to='events.Tag', verbose_name='Event Tags'),
25+
),
26+
]

ACM_General/events/views.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ def create_event(request):
4848
- If the user is submitting a GET request, it will send them to the
4949
blank create event page.
5050
- If the user is submitting a POST request:
51-
- If the form is valid, it will save the event as well as the
52-
ManyToMany relation to the database and redirect the user to the
51+
- If the form is valid, it will save the event as well as the
52+
ManyToMany relation to the database and redirect the user to the
5353
homepage.
5454
- If the form is invalid, the user will be redirected back to the
5555
same create event page with same information that they filled

0 commit comments

Comments
 (0)