mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-31 21:25:42 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			29 lines
		
	
	
		
			606 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			606 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| # -*- coding: utf-8 -*-
 | |
| from __future__ import unicode_literals
 | |
| 
 | |
| from django import forms
 | |
| from crispy_forms.helper import FormHelper
 | |
| 
 | |
| from .models import Build
 | |
| 
 | |
| 
 | |
| class EditBuildForm(forms.ModelForm):
 | |
| 
 | |
|     def __init__(self, *args, **kwargs):
 | |
|         super(EditBuildForm, self).__init__(*args, **kwargs)
 | |
|         self.helper = FormHelper()
 | |
| 
 | |
|         self.helper.form_tag = False
 | |
| 
 | |
|     class Meta:
 | |
|         model = Build
 | |
|         fields = [
 | |
|             'title',
 | |
|             'part',
 | |
|             'quantity',
 | |
|             'batch',
 | |
|             'notes',
 | |
| #            'status',
 | |
| #            'completion_date',
 | |
|         ]
 |