mirror of
https://github.com/django-components/django-components.git
synced 2025-07-16 04:54:59 +00:00
Install isort and fix all imports.
This commit is contained in:
parent
cbe2bcc9c9
commit
40ebd6b936
8 changed files with 28 additions and 5 deletions
|
@ -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 {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue