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

from django.db import migrations, models
import django.db.models.deletion
import machina.apps.forum.abstract_models
import machina.models.fields
import mptt.fields


class Migration(migrations.Migration):

    dependencies = [
        ('forum', '0011_auto_20190627_2132'),
    ]

    operations = [
        migrations.AlterModelOptions(
            name='forum',
            options={'ordering': ['tree_id', 'lft'], 'verbose_name': 'Forum', 'verbose_name_plural': 'Fora'},
        ),
        migrations.AlterField(
            model_name='forum',
            name='created',
            field=models.DateTimeField(auto_now_add=True, verbose_name='Data utworzenia'),
        ),
        migrations.AlterField(
            model_name='forum',
            name='description',
            field=machina.models.fields.MarkupTextField(blank=True, no_rendered_field=True, null=True, verbose_name='Opis'),
        ),
        migrations.AlterField(
            model_name='forum',
            name='direct_posts_count',
            field=models.PositiveIntegerField(blank=True, default=0, editable=False, verbose_name='Liczba postów'),
        ),
        migrations.AlterField(
            model_name='forum',
            name='direct_topics_count',
            field=models.PositiveIntegerField(blank=True, default=0, editable=False, verbose_name='Liczba tematów'),
        ),
        migrations.AlterField(
            model_name='forum',
            name='display_sub_forum_list',
            field=models.BooleanField(default=True, help_text='Wyświetlaj forum w liście forów rodzica.', verbose_name='Wyświetlaj w liście rodzica'),
        ),
        migrations.AlterField(
            model_name='forum',
            name='image',
            field=machina.models.fields.ExtendedImageField(blank=True, null=True, upload_to=machina.apps.forum.abstract_models.get_forum_image_upload_to, verbose_name='Logo forum'),
        ),
        migrations.AlterField(
            model_name='forum',
            name='last_post',
            field=models.ForeignKey(blank=True, editable=False, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='forum_conversation.Post', verbose_name='Ostatni post'),
        ),
        migrations.AlterField(
            model_name='forum',
            name='last_post_on',
            field=models.DateTimeField(blank=True, null=True, verbose_name='Ostatni post dodano'),
        ),
        migrations.AlterField(
            model_name='forum',
            name='link',
            field=models.URLField(blank=True, null=True, verbose_name='Odnośnik forum'),
        ),
        migrations.AlterField(
            model_name='forum',
            name='link_redirects',
            field=models.BooleanField(default=False, help_text='Zliczaj liczbę kliknięć w odnośnik do forum', verbose_name='Licznik przekierowań'),
        ),
        migrations.AlterField(
            model_name='forum',
            name='link_redirects_count',
            field=models.PositiveIntegerField(blank=True, default=0, editable=False, verbose_name='Licznik przekierowań'),
        ),
        migrations.AlterField(
            model_name='forum',
            name='name',
            field=models.CharField(max_length=100, verbose_name='Nazwa'),
        ),
        migrations.AlterField(
            model_name='forum',
            name='parent',
            field=mptt.fields.TreeForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='children', to='forum.Forum', verbose_name='Rodzic'),
        ),
        migrations.AlterField(
            model_name='forum',
            name='type',
            field=models.PositiveSmallIntegerField(choices=[(0, 'Domyślne forum'), (1, 'Kategoria'), (2, 'Odnośnik')], db_index=True, verbose_name='Typ forum'),
        ),
        migrations.AlterField(
            model_name='forum',
            name='updated',
            field=models.DateTimeField(auto_now=True, verbose_name='Data edycji'),
        ),
    ]
