This commit is contained in:
Maxim Kurnikov
2019-02-06 22:20:12 +03:00
parent 2559901ff3
commit d43cb1fcd7
16 changed files with 105 additions and 30 deletions

View File

@@ -1,4 +1,4 @@
from typing import Any, Callable, List, Optional, Type, Union
from typing import Any, Callable, List, Optional, Type, Union, Tuple
from django.core.checks.messages import Error
from django.core.files.base import File
@@ -9,6 +9,8 @@ from django.db.models.base import Model
from django.db.models.fields import Field
from django.forms import fields as form_fields
BLANK_CHOICE_DASH: List[Tuple[str, str]] = ...
class FieldFile(File):
instance: Model = ...
field: FileField = ...