Skip to content

Commit

Permalink
Also extend view for domain update view
Browse files Browse the repository at this point in the history
We need to inject a number of context data pieces for the template, it's
easiest to extend this class.
  • Loading branch information
agjohnson committed Sep 19, 2019
1 parent 30e4955 commit 500f4a2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion readthedocs/projects/views/private.py
Original file line number Diff line number Diff line change
Expand Up @@ -735,10 +735,14 @@ class DomainCreate(SettingsOverrideObject):
_default_class = DomainCreateBase


class DomainUpdate(DomainMixin, UpdateView):
class DomainUpdateBase(DomainMixin, UpdateView):
pass


class DomainUpdate(SettingsOverrideObject):
_default_class = DomainUpdateBase


class DomainDelete(DomainMixin, DeleteView):
pass

Expand Down

0 comments on commit 500f4a2

Please sign in to comment.