Skip to content
Snippets Groups Projects

Superevents

Merged Tanner Prestegard requested to merge superevent into master
2 files
+ 29
1
Compare changes
  • Side-by-side
  • Inline
Files
2
  • c893c5e3
    Restrict tag name characters · c893c5e3
    Tanner Prestegard authored
    If a tag's name has some "uncommon" characters in it, like
    parentheses (or probably others), it will cause errors for the
    javascript which renders the event pages, since it tries to use
    the tag name in the element id for the delete button.  We now require
    that tags only use 0-9a-zA-Z_\- in their names. May have to go through
    and delete some tags which use them.
# -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2018-06-07 18:57
from __future__ import unicode_literals
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('events', '0020_emobservation_N_not_editable'),
]
operations = [
migrations.AlterField(
model_name='tag',
name='name',
field=models.CharField(max_length=100, unique=True, validators=[django.core.validators.RegexValidator(code=b'invalid_tag_name', message=b'Tag names can only include [0-9a-zA-z_-]', regex=b'^[0-9a-zA-Z_\\-]*$')]),
),
]
Loading