Browse Source

Seminar | bugfix po presunu mezi soubory

export_seznamu_prednasek
parent
commit
87bc673ee0
  1. 19
      seminar/migrations/0100_auto_20211129_2354.py
  2. 1
      seminar/models/pomocne.py
  3. 1
      seminar/models/tvorba.py

19
seminar/migrations/0100_auto_20211129_2354.py

@ -0,0 +1,19 @@
# Generated by Django 2.2.24 on 2021-11-29 22:54
from django.db import migrations, models
import seminar.models.tvorba
class Migration(migrations.Migration):
dependencies = [
('seminar', '0099_auto_20210916_1509'),
]
operations = [
migrations.AlterField(
model_name='cislo',
name='pdf',
field=models.FileField(blank=True, help_text='PDF čísla, které si mohou řešitelé stáhnout', null=True, storage=seminar.models.tvorba.OverwriteStorage(), upload_to=seminar.models.tvorba.cislo_pdf_filename, verbose_name='pdf'),
),
]

1
seminar/models/pomocne.py

@ -2,7 +2,6 @@
import logging import logging
import os import os
from django.db import models from django.db import models
from django.core.files.storage import FileSystemStorage
from .base import SeminarModelBase from .base import SeminarModelBase

1
seminar/models/tvorba.py

@ -12,6 +12,7 @@ from django.conf import settings
from django.urls import reverse from django.urls import reverse
from django.core.cache import cache from django.core.cache import cache
from django.core.exceptions import ObjectDoesNotExist, ValidationError from django.core.exceptions import ObjectDoesNotExist, ValidationError
from django.core.files.storage import FileSystemStorage
from django.utils.text import get_valid_filename from django.utils.text import get_valid_filename
from django.utils.functional import cached_property from django.utils.functional import cached_property

Loading…
Cancel
Save