Skip to content

Commit

Permalink
Allow to extend DomainCreate view
Browse files Browse the repository at this point in the history
  • Loading branch information
humitos committed Sep 5, 2019
1 parent 89a58a0 commit 30e4955
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion 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 @@ -726,10 +727,14 @@ def get_context_data(self, **kwargs):
return ctx


class DomainCreate(DomainMixin, CreateView):
class DomainCreateBase(DomainMixin, CreateView):
pass


class DomainCreate(SettingsOverrideObject):
_default_class = DomainCreateBase


class DomainUpdate(DomainMixin, UpdateView):
pass

Expand Down

0 comments on commit 30e4955

Please sign in to comment.