Closed gmcdowell closed 10 months ago
Hi! I see you are using.:
instead of =
.
Option 1:
class AModel(Model):
# ...
type = EnumField(
enum=AType,
default=AType.PENDING,
)
Option 2 (using type annotation and TypedModel):
class AModel(TypedModel):
# ...
type: AType = AType.PENDING
Ah yeah.. that did the trick Thx heaps eh.
Fails test and throws AttributeError: 'AModel' object has no attribute 'num' (first assertion) Same goes for 'bool' and 'type'