PEP8 cleanups
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
@@ -36,7 +36,6 @@ class ACLTestMixin(PermissionTestMixin, RoleTestMixin, TestModelTestMixin):
|
|||||||
auto_create_test_role = True
|
auto_create_test_role = True
|
||||||
auto_create_test_object = False
|
auto_create_test_object = False
|
||||||
|
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
super(ACLTestMixin, self).setUp()
|
super(ACLTestMixin, self).setUp()
|
||||||
if self.auto_create_test_role:
|
if self.auto_create_test_role:
|
||||||
|
|||||||
@@ -172,7 +172,6 @@ class DynamicFormMixin(object):
|
|||||||
kwargs.update(field_data.get('kwargs', {}))
|
kwargs.update(field_data.get('kwargs', {}))
|
||||||
self.fields[field_name] = field_class(**kwargs)
|
self.fields[field_name] = field_class(**kwargs)
|
||||||
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def media(self):
|
def media(self):
|
||||||
return forms.Media(**self.schema.get('media', {}))
|
return forms.Media(**self.schema.get('media', {}))
|
||||||
|
|||||||
@@ -1,13 +1,11 @@
|
|||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
from django.template import Library
|
from django.template import Library
|
||||||
from django.utils.module_loading import import_string
|
|
||||||
from django.utils.translation import ugettext_lazy as _
|
|
||||||
|
|
||||||
register = Library()
|
|
||||||
|
|
||||||
from ..classes import SearchModel
|
from ..classes import SearchModel
|
||||||
|
|
||||||
|
register = Library()
|
||||||
|
|
||||||
|
|
||||||
@register.simple_tag
|
@register.simple_tag
|
||||||
def get_search_models():
|
def get_search_models():
|
||||||
|
|||||||
Reference in New Issue
Block a user