Skip to content

Commit

Permalink
Merge pull request readthedocs#6139 from readthedocs/humitos/allow-ex…
Browse files Browse the repository at this point in the history
…tend-domain-create

Allow to extend DomainCreate view
  • Loading branch information
agjohnson authored Sep 23, 2019
2 parents 9125deb + b0b1a47 commit 0034c1a
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions readthedocs/projects/views/private.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
from readthedocs.builds.models import Version
from readthedocs.core.mixins import ListViewWithForm, LoginRequiredMixin
from readthedocs.core.utils import broadcast, trigger_build
from readthedocs.core.utils.extend import SettingsOverrideObject
from readthedocs.integrations.models import HttpExchange, Integration
from readthedocs.oauth.services import registry
from readthedocs.oauth.tasks import attach_webhook
Expand Down Expand Up @@ -715,16 +716,22 @@ def get_context_data(self, **kwargs):
return ctx


class DomainCreate(DomainMixin, CreateView):

class DomainCreateBase(DomainMixin, CreateView):
pass


class DomainUpdate(DomainMixin, UpdateView):
class DomainCreate(SettingsOverrideObject):
_default_class = DomainCreateBase


class DomainUpdateBase(DomainMixin, UpdateView):
pass


class DomainUpdate(SettingsOverrideObject):
_default_class = DomainUpdateBase


class DomainDelete(DomainMixin, DeleteView):

pass
Expand Down

0 comments on commit 0034c1a

Please sign in to comment.