|
|
|
@ -3,6 +3,7 @@ from django.contrib.auth.views import LoginView
@@ -3,6 +3,7 @@ from django.contrib.auth.views import LoginView
|
|
|
|
|
from django.shortcuts import get_object_or_404 |
|
|
|
|
from django.urls import reverse_lazy |
|
|
|
|
from django.views.generic import RedirectView, TemplateView, CreateView, UpdateView, DeleteView |
|
|
|
|
from django_scopes import scopes_disabled |
|
|
|
|
from scopedsites.models import Domain |
|
|
|
|
|
|
|
|
|
from leftists.forms import LinkForm |
|
|
|
@ -25,6 +26,7 @@ class OverView(LoginRequiredMixin, TemplateView):
@@ -25,6 +26,7 @@ class OverView(LoginRequiredMixin, TemplateView):
|
|
|
|
|
template_name = 'interface/overview.html' |
|
|
|
|
|
|
|
|
|
def get_context_data(self, **kwargs): |
|
|
|
|
with scopes_disabled(): |
|
|
|
|
ctx = super().get_context_data(**kwargs) |
|
|
|
|
ds = Domain.objects.all() |
|
|
|
|
ctx.setdefault('domains', ds) |
|
|
|
|