Seminar | bugfix po presunu mezi soubory
This commit is contained in:
parent
7e48ce8c19
commit
87bc673ee0
3 changed files with 20 additions and 1 deletions
19
seminar/migrations/0100_auto_20211129_2354.py
Normal file
19
seminar/migrations/0100_auto_20211129_2354.py
Normal file
|
@ -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'),
|
||||
),
|
||||
]
|
|
@ -2,7 +2,6 @@
|
|||
import logging
|
||||
import os
|
||||
from django.db import models
|
||||
from django.core.files.storage import FileSystemStorage
|
||||
|
||||
from .base import SeminarModelBase
|
||||
|
||||
|
|
|
@ -12,6 +12,7 @@ from django.conf import settings
|
|||
from django.urls import reverse
|
||||
from django.core.cache import cache
|
||||
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.functional import cached_property
|
||||
|
||||
|
|
Loading…
Reference in a new issue