Refactor news:collection template paths
This commit is contained in:
parent
f97e495e72
commit
3144d86254
5 changed files with 4 additions and 4 deletions
|
|
@ -48,21 +48,21 @@ class CollectionRuleDetailMixin:
|
||||||
|
|
||||||
class CollectionRuleListView(CollectionRuleViewMixin, ListView):
|
class CollectionRuleListView(CollectionRuleViewMixin, ListView):
|
||||||
paginate_by = 50
|
paginate_by = 50
|
||||||
template_name = "collection/rules.html"
|
template_name = "news/collection/views/rules.html"
|
||||||
context_object_name = "rules"
|
context_object_name = "rules"
|
||||||
|
|
||||||
|
|
||||||
class CollectionRuleUpdateView(
|
class CollectionRuleUpdateView(
|
||||||
CollectionRuleViewMixin, CollectionRuleDetailMixin, UpdateView
|
CollectionRuleViewMixin, CollectionRuleDetailMixin, UpdateView
|
||||||
):
|
):
|
||||||
template_name = "collection/rule-update.html"
|
template_name = "news/collection/views/rule-update.html"
|
||||||
context_object_name = "rule"
|
context_object_name = "rule"
|
||||||
|
|
||||||
|
|
||||||
class CollectionRuleCreateView(
|
class CollectionRuleCreateView(
|
||||||
CollectionRuleViewMixin, CollectionRuleDetailMixin, CreateView
|
CollectionRuleViewMixin, CollectionRuleDetailMixin, CreateView
|
||||||
):
|
):
|
||||||
template_name = "collection/rule-create.html"
|
template_name = "news/collection/views/rule-create.html"
|
||||||
|
|
||||||
|
|
||||||
class CollectionRuleBulkView(FormView):
|
class CollectionRuleBulkView(FormView):
|
||||||
|
|
@ -122,7 +122,7 @@ class CollectionRuleBulkDeleteView(CollectionRuleBulkView):
|
||||||
class OPMLImportView(FormView):
|
class OPMLImportView(FormView):
|
||||||
form_class = OPMLImportForm
|
form_class = OPMLImportForm
|
||||||
success_url = reverse_lazy("news:collection:rules")
|
success_url = reverse_lazy("news:collection:rules")
|
||||||
template_name = "collection/import.html"
|
template_name = "news/collection/views/import.html"
|
||||||
|
|
||||||
def form_valid(self, form):
|
def form_valid(self, form):
|
||||||
user = self.request.user
|
user = self.request.user
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue