Добавлена фильтрация по группе designers на форму добавления заказа
This commit is contained in:
@@ -54,6 +54,7 @@ class OrderForm(ModelForm):
|
|||||||
queryset = Product.objects.all(),
|
queryset = Product.objects.all(),
|
||||||
widget=RelatedFieldWidgetCanAdd(Product)
|
widget=RelatedFieldWidgetCanAdd(Product)
|
||||||
)
|
)
|
||||||
|
designer = forms.ModelChoiceField(queryset = User.objects.filter(groups__name='designers'))
|
||||||
|
|
||||||
|
|
||||||
class ProdTableForm(ModelForm):
|
class ProdTableForm(ModelForm):
|
||||||
|
|||||||
Reference in New Issue
Block a user