FireO
FireO copied to clipboard
How to get model class values in static method?
I want to get the field value like we use self in Django models.
class UserModel(Model):
id = IDField()
uid = TextField()
@classmethod
def get_user(cls):
return cls.uid
The class method, keep returning NONE instead of the string value of the uid field. Did I miss something?