first commit
This commit is contained in:
@@ -11,17 +11,11 @@ class ProductCreateCustomView(LoginRequiredMixin, PermissionRequiredMixin, Creat
|
||||
model = models.Product
|
||||
template_name = 'Product/Create/index.html'
|
||||
form_class = FormsProduct.FormsProduct
|
||||
success_url = reverse_lazy('MovProductListView')
|
||||
success_url = reverse_lazy('Dashboard')
|
||||
permission_required = 'Base.add_'
|
||||
|
||||
def get_context_data(self, **kwargs):
|
||||
context = super().get_context_data(**kwargs)
|
||||
# if self.request.GET.get('Client'):
|
||||
# filter_client = Client.objects.filter(
|
||||
# id=self.request.GET.get('Client') or ''
|
||||
# )
|
||||
# else: filter_client = Client.objects.none()
|
||||
# context['Client'] = filter_client
|
||||
return context
|
||||
|
||||
def get_form(self, form_class=None):
|
||||
|
||||
Reference in New Issue
Block a user