diff --git a/django_utils/choices.py b/django_utils/choices.py index cfb197a..12d6add 100644 --- a/django_utils/choices.py +++ b/django_utils/choices.py @@ -5,7 +5,7 @@ Create a :py:class:`Choices` class and add :py:class:`Choice` objects to the class to define your choices. -Example: +Example: The normal Django version: diff --git a/django_utils/templatetags/debug.py b/django_utils/templatetags/debug.py index 314510d..77d1093 100644 --- a/django_utils/templatetags/debug.py +++ b/django_utils/templatetags/debug.py @@ -13,6 +13,7 @@ class _Formatter(object): formatters_type = {} formatters_instance = [] + class Formatter(_Formatter): MAX_LENGTH = 100 MAX_LENGTH_DOTS = 3 @@ -189,7 +190,8 @@ def format_object(self, value, depth): for k, v in dict_.items(): dict_[k] = self(v, depth - 1) - if hasattr(value, '__class__') and hasattr(value.__class__, '__name__'): + if(hasattr(value, '__class__') and + hasattr(value.__class__, '__name__')): name = value.__class__.__name__ else: module = __name__