|
|
|
@ -66,10 +66,6 @@ class StaticPageView(DetailView): |
|
|
|
template_name = "settings/static_page.html" |
|
|
|
model = StaticPage |
|
|
|
fields = '__all__' |
|
|
|
@classmethod |
|
|
|
def as_view(self, *args, **kwargs): |
|
|
|
view = super().as_view(*args, **kwargs) |
|
|
|
return staff_member_required(view) |
|
|
|
|
|
|
|
def get_context_data(self, **kwargs): |
|
|
|
context = super().get_context_data(**kwargs) |
|
|
|
|