Commits

sixstone committed 302c919

Adding autodiscover in command management

  • Participants
  • Parent commits c00a035

Comments (0)

Files changed (1)

File dbgettext/management/commands/dbgettext_export.py

 import os
 from dbgettext.registry import registry
 from dbgettext.parser import parsed_gettext
+import dbgettext
 
 def recursive_getattr(obj, attr, default=None, separator='__'):
     """ Allows getattr(obj, 'related_class__property__subproperty__etc') """
             string = string.encode('utf8')
             file.write('# -*- coding: utf-8 -*-\ngettext("""%s""")\n' % string)
 
+        dbgettext.autodiscover()
         root = os.path.join(self.path, self.root)
 
         # remove any old files