fargo: check for real that fargo is installed (#14782)

This commit is contained in:
Frédéric Péters 2017-01-26 13:12:38 +01:00
parent 54595843a7
commit 1b00a311cf
1 changed files with 2 additions and 1 deletions

View File

@ -35,7 +35,8 @@ class RecentDocumentsCell(CellBase):
return False
return super(RecentDocumentsCell, self).is_visible(user)
def is_fargo_enabled(self):
@classmethod
def is_enabled(cls):
return hasattr(settings, 'KNOWN_SERVICES') and settings.KNOWN_SERVICES.get('fargo')
def get_json(self, path, context):