diff options
Diffstat (limited to 'ishtar_common/views.py')
| -rw-r--r-- | ishtar_common/views.py | 7 | 
1 files changed, 6 insertions, 1 deletions
| diff --git a/ishtar_common/views.py b/ishtar_common/views.py index b58ab024a..31d3d9516 100644 --- a/ishtar_common/views.py +++ b/ishtar_common/views.py @@ -1598,7 +1598,12 @@ class ImportListView(IshtarMixin, LoginRequiredMixin, ListView):      def get_context_data(self, **kwargs):          dct = super(ImportListView, self).get_context_data(**kwargs) -        dct["autorefresh_available"] = settings.USE_BACKGROUND_TASK +        dct.update({ +            "autorefresh_available": settings.USE_BACKGROUND_TASK, +            "has_import_table": models.ImporterType.objects.filter(available=True, is_import=True, type='tab').count(), +            "has_import_gis": models.ImporterType.objects.filter(available=True, is_import=True, type='gis').count(), +            "has_import_group": models.ImporterGroup.objects.filter(available=True).count(), +        })          return dct | 
