Skip to content

Commit

Permalink
Decrease meeting slug max_length
Browse files Browse the repository at this point in the history
  • Loading branch information
jochenklar committed Jun 8, 2018
1 parent 93b060c commit f6384da
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
2 changes: 1 addition & 1 deletion daiquiri/meetings/migrations/0001_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class Migration(migrations.Migration):
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('title', models.CharField(help_text='Title of the meeting', max_length=256, verbose_name='Title')),
('slug', models.SlugField(help_text='Slug for the URL of the meeting', max_length=256, verbose_name='Slug')),
('slug', models.SlugField(help_text='Slug for the URL of the meeting', max_length=32, verbose_name='Slug')),
('registration_message', models.TextField(blank=True, help_text='Message on registration page', null=True, verbose_name='Registration message')),
('participants_message', models.TextField(blank=True, help_text='Message on participants page', null=True, verbose_name='Participants message')),
('contributions_message', models.TextField(blank=True, help_text='Message on contributions page', null=True, verbose_name='Contributions message')),
Expand Down
20 changes: 20 additions & 0 deletions daiquiri/meetings/migrations/0008_slug_max_length.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.10 on 2018-06-08 10:27
from __future__ import unicode_literals

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('daiquiri_meetings', '0007_remove_participant_accepted'),
]

operations = [
migrations.AlterField(
model_name='meeting',
name='slug',
field=models.SlugField(help_text='Slug for the URL of the meeting', max_length=32, verbose_name='Slug'),
),
]
2 changes: 1 addition & 1 deletion daiquiri/meetings/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Meeting(models.Model):
help_text=_('Title of the meeting')
)
slug = models.SlugField(
max_length=256,
max_length=32,
verbose_name=_('Slug'),
help_text=_('Slug for the URL of the meeting')
)
Expand Down

0 comments on commit f6384da

Please sign in to comment.