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