# Generated by Django 2.2 on 2020-04-24 08:05

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


class Migration(migrations.Migration):

    dependencies = [
        ('forum_polls', '0002_auto_20151105_0029'),
    ]

    operations = [
        migrations.AlterModelOptions(
            name='topicpoll',
            options={'get_latest_by': 'updated', 'ordering': ['-updated'], 'verbose_name': 'Temat z ankietą', 'verbose_name_plural': 'Tematy z ankietą'},
        ),
        migrations.AlterModelOptions(
            name='topicpolloption',
            options={'verbose_name': 'Opcja odpowiedzi', 'verbose_name_plural': 'Opcje odpowiedzi'},
        ),
        migrations.AlterModelOptions(
            name='topicpollvote',
            options={'verbose_name': 'Głos użytkownika', 'verbose_name_plural': 'Głosy użytkowników'},
        ),
        migrations.AlterField(
            model_name='topicpoll',
            name='created',
            field=models.DateTimeField(auto_now_add=True, verbose_name='Data utworzenia'),
        ),
        migrations.AlterField(
            model_name='topicpoll',
            name='duration',
            field=models.PositiveIntegerField(blank=True, null=True, verbose_name='Czas trwania ankiety w dniach'),
        ),
        migrations.AlterField(
            model_name='topicpoll',
            name='max_options',
            field=models.PositiveSmallIntegerField(default=1, validators=[django.core.validators.MinValueValidator(1), django.core.validators.MaxValueValidator(10)], verbose_name='Maksymalna liczba opcji ankiety dla użytkownika'),
        ),
        migrations.AlterField(
            model_name='topicpoll',
            name='question',
            field=models.CharField(max_length=255, verbose_name='Pytanie ankiety'),
        ),
        migrations.AlterField(
            model_name='topicpoll',
            name='topic',
            field=models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='poll', to='forum_conversation.Topic', verbose_name='Temat'),
        ),
        migrations.AlterField(
            model_name='topicpoll',
            name='updated',
            field=models.DateTimeField(auto_now=True, verbose_name='Data edycji'),
        ),
        migrations.AlterField(
            model_name='topicpoll',
            name='user_changes',
            field=models.BooleanField(default=False, verbose_name='Pozwól zmieniać odpowiedzi'),
        ),
        migrations.AlterField(
            model_name='topicpolloption',
            name='poll',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='options', to='forum_polls.TopicPoll', verbose_name='Ankieta'),
        ),
        migrations.AlterField(
            model_name='topicpolloption',
            name='text',
            field=models.CharField(max_length=255, verbose_name='Treść odpowiedzi'),
        ),
        migrations.AlterField(
            model_name='topicpollvote',
            name='anonymous_key',
            field=models.CharField(blank=True, max_length=100, null=True, verbose_name='Identyfikator anonimowego użytkownika'),
        ),
        migrations.AlterField(
            model_name='topicpollvote',
            name='poll_option',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='votes', to='forum_polls.TopicPollOption', verbose_name='Odpowiedź'),
        ),
        migrations.AlterField(
            model_name='topicpollvote',
            name='timestamp',
            field=models.DateTimeField(auto_now_add=True, verbose_name='Data oddania głosu'),
        ),
        migrations.AlterField(
            model_name='topicpollvote',
            name='voter',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='poll_votes', to=settings.AUTH_USER_MODEL, verbose_name='Głosujący'),
        ),
    ]
