Open ZechCodes opened 3 years ago
Refer to the Using Declarative Models wiki.
Go through the permissions.py in dippy/core/api/models and do the following
permissions.py
dippy/core/api/models
from __future__ import annotations as _
attrs
Model
dippy.core.model.models
@attrs
attrib(...)
Field
dippy.core.models.fields
attrib
json_arg(...)
⚠️ Please make each file changed its own commit. ⚠️
Hey @ZechCodes can i work on this ?
Hey @rexdivakar! Sorry for the late response, Zech is currently busy but I'll assign you!
Hey @rexdivakar, are you still working on this?
Yes
Refer to the Using Declarative Models wiki.
Go through the
permissions.py
indippy/core/api/models
and do the followingfrom __future__ import annotations as _
attrs
moduleModel
fromdippy.core.model.models
@attrs
lines and update each class with to inheritModel
attrib(...)
assignmentsField
fromdippy.core.models.fields
attrib
withField
json_arg(...)
assignments the same way asattrib
assignments⚠️ Please make each file changed its own commit. ⚠️