diff --git a/partners/views.py b/partners/views.py index b1c0b3e..3bcb5e3 100644 --- a/partners/views.py +++ b/partners/views.py @@ -130,7 +130,12 @@ class EstablishmentRequestView(InConstructionMixin, PartnerProfileRequiredMixin, def form_valid(self, form): form.instance.owner = self.request.user.partnerprofile - return super().form_valid(form) + retval = super().form_valid(form) + + RoomCategory.objects.create(name="Einzelzimmer", average_price=100, active=False, establishment=form.instance) # TODO: Move somewhere better + RoomCategory.objects.create(name="Doppelzimmer", average_price=100, active=False, establishment=form.instance) + + return retval def get_success_url(self): return reverse_lazy("partners:establishments")