diff --git a/cms/migrations/0003_alter_menuitem_url.py b/cms/migrations/0003_alter_menuitem_url.py new file mode 100644 index 0000000..94c9975 --- /dev/null +++ b/cms/migrations/0003_alter_menuitem_url.py @@ -0,0 +1,18 @@ +# Generated by Django 4.2.15 on 2024-11-23 19:43 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('cms', '0002_initial'), + ] + + operations = [ + migrations.AlterField( + model_name='menuitem', + name='url', + field=models.TextField(help_text='URL stránky kam má preklik viesť', verbose_name='URL'), + ), + ] diff --git a/cms/models.py b/cms/models.py index d0d0598..a7a198e 100644 --- a/cms/models.py +++ b/cms/models.py @@ -100,8 +100,7 @@ class Meta: verbose_name='názov', help_text='Nápis, ktorý sa zobrazí v menu. Maximálne 2 slová.', max_length=25) - url = models.CharField(verbose_name='URL', - max_length=100, + url = models.TextField(verbose_name='URL', help_text='URL stránky kam má preklik viesť') priority = models.SmallIntegerField( verbose_name='priorita', diff --git a/competition/migrations/0003_alter_solution_corrected_solution_and_more.py b/competition/migrations/0003_alter_solution_corrected_solution_and_more.py new file mode 100644 index 0000000..1275f0d --- /dev/null +++ b/competition/migrations/0003_alter_solution_corrected_solution_and_more.py @@ -0,0 +1,26 @@ +# Generated by Django 4.2.15 on 2024-11-23 19:43 + +import base.models +import competition.models +import django.core.files.storage +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('competition', '0002_initial'), + ] + + operations = [ + migrations.AlterField( + model_name='solution', + name='corrected_solution', + field=base.models.RestrictedFileField(blank=True, storage=django.core.files.storage.FileSystemStorage(base_url='/protected/', location='C:\\Users\\petko\\Documents\\GitHub\\webstrom\\webstrom-backend\\protected_media/'), upload_to=competition.models.get_corrected_solution_path, verbose_name='opravené riešenie'), + ), + migrations.AlterField( + model_name='solution', + name='solution', + field=base.models.RestrictedFileField(blank=True, storage=django.core.files.storage.FileSystemStorage(base_url='/protected/', location='C:\\Users\\petko\\Documents\\GitHub\\webstrom\\webstrom-backend\\protected_media/'), upload_to=competition.models.get_solution_path, verbose_name='účastnícke riešenie'), + ), + ]