Install isort and fix all imports.

This commit is contained in:
Emil Stenström 2019-11-24 11:00:45 +01:00
parent cbe2bcc9c9
commit 40ebd6b936
8 changed files with 28 additions and 5 deletions

View file

@ -1,8 +1,11 @@
from django.template.loader import render_to_string
from .component_registry import ComponentRegistry, AlreadyRegistered, NotRegistered # NOQA
from django.forms.widgets import MediaDefiningClass
from django.template.loader import render_to_string
from six import with_metaclass
# Allow "component.AlreadyRegistered" instead of having to import these everywhere
from django_components.component_registry import AlreadyRegistered, ComponentRegistry, NotRegistered # NOQA
class Component(with_metaclass(MediaDefiningClass)):
def context(self):
return {}