Fix migration error (unique app configuragion keys)

This commit is contained in:
Raphael Michel
2017-10-02 17:40:31 +02:00
parent 26f258c6cf
commit 50c595e3d6
2 changed files with 2 additions and 2 deletions

View File

@@ -33,7 +33,7 @@ class Migration(migrations.Migration):
name='AppConfiguration',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('key', models.CharField(db_index=True, max_length=190, unique=True)),
('key', models.CharField(db_index=True, max_length=190)),
('all_items', models.BooleanField(default=True)),
('allow_search', models.BooleanField(default=True)),
('show_info', models.BooleanField(default=True)),

View File

@@ -7,7 +7,7 @@ from django.utils.translation import pgettext_lazy, ugettext_lazy as _
class AppConfiguration(models.Model):
event = models.ForeignKey('pretixbase.Event')
key = models.CharField(max_length=190, unique=True, db_index=True)
key = models.CharField(max_length=190, db_index=True)
all_items = models.BooleanField(default=True, verbose_name=_('Can scan all products'))
items = models.ManyToManyField('pretixbase.Item', blank=True, verbose_name=_('Can scan these products'))
subevent = models.ForeignKey('pretixbase.SubEvent', null=True, blank=True,