# -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2017-01-07 10:58
from __future__ import unicode_literals

import django.db.models.deletion
from django.conf import settings
from django.db import migrations, models

import pretix.base.models.event


class Migration(migrations.Migration):

    dependencies = [
        ('pretixbase', '0053_auto_20170104_1252'),
    ]

    operations = [
        migrations.AddField(
            model_name='eventpermission',
            name='invite_email',
            field=models.EmailField(blank=True, max_length=254, null=True),
        ),
        migrations.AddField(
            model_name='eventpermission',
            name='invite_token',
            field=models.CharField(blank=True, default=pretix.base.models.event.generate_invite_token, max_length=64, null=True),
        ),
        migrations.AlterField(
            model_name='eventpermission',
            name='user',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='event_perms', to=settings.AUTH_USER_MODEL),
        ),
    ]
