|
@@ -40,7 +40,7 @@ class ServiceUpdate(ServiceMixin, UpdateView):
|
|
|
class ServiceAllocate(PermissionRequiredMixin, CreateView):
|
|
|
model = ResourceAllocation
|
|
|
permission_required = 'services.change_resourceallocation'
|
|
|
- fields = ('service', 'resource',)
|
|
|
+ form_class = ResourceAllocationForm
|
|
|
|
|
|
def get_context_data(self, **kwargs):
|
|
|
context = super().get_context_data(**kwargs)
|
|
@@ -97,7 +97,7 @@ class IPResourceDetail(IPResourceMixin, DetailView):
|
|
|
class IPResourceAllocate(PermissionRequiredMixin, CreateView):
|
|
|
model = ResourceAllocation
|
|
|
permission_required = 'services.change_resourceallocation'
|
|
|
- fields = ('service', 'resource',)
|
|
|
+ form_class = ResourceAllocationForm
|
|
|
|
|
|
def get_context_data(self, **kwargs):
|
|
|
context = super().get_context_data(**kwargs)
|