Skip to content

Commit

Permalink
rebuild pydantic model after dropping id field
Browse files Browse the repository at this point in the history
  • Loading branch information
benedikt-bartscher committed Mar 2, 2024
1 parent 2c94f64 commit f74f33d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions reflex/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ def __init_subclass__(cls):
]
if non_default_primary_key_fields:
cls.model_fields.pop("id", None)
cls.model_rebuild(force=True)

super().__init_subclass__()

Expand Down

0 comments on commit f74f33d

Please sign in to comment.