This commit is contained in:
2024-01-04 09:02:44 +01:00
parent ed19c7c6cb
commit 689c71deb1
48 changed files with 1464 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
import reflex as rx
class BaseModel(rx.Model):
def as_dict(self):
return {c.name: getattr(self, c.name) for c in self.__table__.columns}