Skip to content

Commit

Permalink
Odstranenie constraint na dlzku v url na menu item (#443)
Browse files Browse the repository at this point in the history
  • Loading branch information
kovacspe authored Nov 23, 2024
1 parent 0c155b1 commit b1c9959
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 2 deletions.
18 changes: 18 additions & 0 deletions cms/migrations/0003_alter_menuitem_url.py
Original file line number Diff line number Diff line change
@@ -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'),
),
]
3 changes: 1 addition & 2 deletions cms/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
Original file line number Diff line number Diff line change
@@ -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'),
),
]

0 comments on commit b1c9959

Please sign in to comment.