You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, I'm trying to find a solution how to use the MySQL SET field column type in the model of ormar.
How about adding a new field called ormar.SetField (it should inherit from enum.IntFlag). Choices wont work btw.
How about this implementation:
from enum import IntFlag
class SetFieldClass(IntFlag):
A = 1
B = 2
import ormar
ormar.SetField(type_class=SetFieldClass)?
The text was updated successfully, but these errors were encountered:
Hey, I'm trying to find a solution how to use the MySQL SET field column type in the model of ormar.
How about adding a new field called ormar.SetField (it should inherit from enum.IntFlag). Choices wont work btw.
How about this implementation:
The text was updated successfully, but these errors were encountered: