промежуточные результаты (добавление строк в таблице Производственный план)

This commit is contained in:
Anastasia
2015-09-07 16:03:32 +05:00
parent 463faa3cee
commit 3e43d35fc9
6 changed files with 27 additions and 3 deletions

View File

@@ -68,3 +68,11 @@ class ProdTableForm(ModelForm):
queryset = CostItem.objects.all(),
widget=RelatedFieldWidgetCanAdd(CostItem)
)
class ProdPlanForm(ModelForm):
class Meta:
model = ProdPlan
fields = ['start_date', 'order', 'executor','action']
submit_text = "Добавить"
start_date = forms.DateField(widget = AdminDateWidget(format = '%d.%m.%Y'))