Initial commit

This commit is contained in:
Felix Baumann
2026-06-27 17:07:34 +00:00
commit fb47c53d52
256 changed files with 21270 additions and 0 deletions
+43
View File
@@ -0,0 +1,43 @@
from django import forms
from .models import InventoryItem, ShoppingItem
from core.forms.base import BaseForm
class InventoryItemForm(BaseForm):
class Meta:
model = InventoryItem
fields = [
"name",
"description",
"quantity",
"location",
"article_number",
"responsible",
"category",
]
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.apply_style()
class ShoppingItemForm(BaseForm):
class Meta:
model = ShoppingItem
fields = [
"name",
"description",
"quantity",
"supplier",
"price",
"category",
]
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.apply_style()