Reorganize code a bit, add current directory to sys.path (#198)

* reorganize code a bit

* add current directory to sys.path

* remove PYTHONPATH mention from the docs

* linting
This commit is contained in:
Maxim Kurnikov authored and GitHub committed 2019-10-05 19:44:29 +03:00
1 parent b939bc96b7
commit 717be5940f
11 files changed
+287 -238

No files matched your search

+1 -1
View File
@@ -44,7 +44,7 @@ def fill_descriptor_types_for_related_field(ctx: FunctionContext, django_context
assert isinstance(current_field, RelatedField)
related_model_cls = django_context.fields_context.get_related_model_cls(current_field)
related_model_cls = django_context.get_field_related_model_cls(current_field)
related_model = related_model_cls
related_model_to_set = related_model_cls