Update mixins.py

This commit is contained in:
Arvind Tiwari 2018-04-09 03:02:50 +05:30 committed by GitHub
parent 30d7785700
commit 5dd29bb09e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,12 +32,5 @@ class ProcessVMSelectionMixin(object):
class HostingContextMixin(object):
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
context['REDIRECT_TO_CMS'] = (Page
.objects
.filter(site_id=Site
.objects
.get_current()
.id)
.count())
context['MULTISITE_CMS_FALLBACK'] = settings.MULTISITE_CMS_FALLBACK
return context