Fully functional. FrontEnd remains

This commit is contained in:
2024-10-07 21:44:58 +09:00
parent fc20ca01b7
commit 0e82b86e51
27 changed files with 528 additions and 170 deletions

10
smartsoltech/web/forms.py Normal file
View File

@@ -0,0 +1,10 @@
from django import forms
from .models import Order, Project
class ProjectForm(forms.ModelForm):
class Meta:
model = Project
fields = '__all__'
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.fields['order'].queryset = Order.objects.filter(status='completed', project__isnull=True)