Update mixins.py
This commit is contained in:
		
					parent
					
						
							
								30d7785700
							
						
					
				
			
			
				commit
				
					
						5dd29bb09e
					
				
			
		
					 1 changed files with 0 additions and 7 deletions
				
			
		| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue