Connected service management front to back; migrated to formik
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user