replace drf by django-ninja

This commit is contained in:
thomas girod committed 2024-07-23 19:57:33 +02:00
1 parent d9531838f2
commit 3046438cb1
43 files changed
+1001 -1191

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
from ninja import ModelSchema
from core.schemas import SimpleUserSchema
from counter.models import Counter
class CounterSchema(ModelSchema):
barmen_list: list[SimpleUserSchema]
is_open: bool
class Meta:
model = Counter
fields = ["id", "name", "type", "club", "products"]