init commit

This commit is contained in:
2025-11-24 07:02:33 +09:00
commit 7bf003e70d
488 changed files with 51130 additions and 0 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)