from django.views.generic import CreateView from .models import PartnerProfile from localauth.mixins import LoginRequiredMixin class PartnerRegistrationView(LoginRequiredMixin, CreateView): model = PartnerProfile exclude = ["user"]