1. Jacob Smullyan
  2. django-helptext

Commits

Jacob Smullyan  committed 3506846

pep8 cleanup

  • Participants
  • Parent commits 2efdc8b
  • Branches default

Comments (0)

Files changed (1)

File helptext/models.py

View file
  • Ignore whitespace
 from django.db import models
 from django.utils.importlib import import_module
 
+
 def register_app(app_label):
     model_list = models.get_models(app_label)
     register_model(*model_list)
 
 
 class FieldHelpProxy(object):
+
     def __init__(self, fh):
-        self . content_type=fh.content_type
-        self . field_name=fh.field_name
+        self.content_type = fh.content_type
+        self.field_name = fh.field_name
 
     def __unicode__(self):
         try:
 
 
 _configuration = None
+
+
 def _get_configuration():
     global _configuration
-    if None == _configuration:
+    if _configuration is None:
         if hasattr(settings, 'HELPTEXT_CONFIGURATION'):
             path = settings.HELPTEXT_CONFIGURATION
             try: