Connected service management front to back; migrated to formik

This commit is contained in:
2022-06-19 21:10:05 +02:00
parent e6dedf5cd8
commit fef4cac1cf
24 changed files with 454 additions and 162 deletions

View File

@@ -1,6 +1,6 @@
import strawberry
from api.models import UserModel
import api.models as models
@strawberry.type
@@ -9,5 +9,5 @@ class User:
name: str
@classmethod
def from_instance(cls, instance: UserModel):
def from_instance(cls, instance: models.User):
return cls(id=instance.id, name=instance.name)