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):
|
||||
paginate_by = 50
|
||||
template_name = "collection/rules.html"
|
||||
template_name = "news/collection/views/rules.html"
|
||||
context_object_name = "rules"
|
||||
|
||||
|
||||
class CollectionRuleUpdateView(
|
||||
CollectionRuleViewMixin, CollectionRuleDetailMixin, UpdateView
|
||||
):
|
||||
template_name = "collection/rule-update.html"
|
||||
template_name = "news/collection/views/rule-update.html"
|
||||
context_object_name = "rule"
|
||||
|
||||
|
||||
class CollectionRuleCreateView(
|
||||
CollectionRuleViewMixin, CollectionRuleDetailMixin, CreateView
|
||||
):
|
||||
template_name = "collection/rule-create.html"
|
||||
template_name = "news/collection/views/rule-create.html"
|
||||
|
||||
|
||||
class CollectionRuleBulkView(FormView):
|
||||
|
|
@ -122,7 +122,7 @@ class CollectionRuleBulkDeleteView(CollectionRuleBulkView):
|
|||
class OPMLImportView(FormView):
|
||||
form_class = OPMLImportForm
|
||||
success_url = reverse_lazy("news:collection:rules")
|
||||
template_name = "collection/import.html"
|
||||
template_name = "news/collection/views/import.html"
|
||||
|
||||
def form_valid(self, form):
|
||||
user = self.request.user
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue