Skip to content

Commit

Permalink
update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
devkral committed Jan 13, 2025
1 parent 85bf9d0 commit 776636f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions edgy/core/db/models/metaclasses.py
Original file line number Diff line number Diff line change
Expand Up @@ -789,6 +789,7 @@ def __new__(
registry: Union[Registry, None, Literal[False]] = get_model_registry(bases, meta_class)
meta.registry = registry or None
# don't add automatically to registry. Useful for subclasses which modify the registry itself.
# `skip_registry="allow_search"` is trueish so it works.
if not meta.registry or skip_registry:
new_class.model_rebuild(force=True)
return new_class
Expand Down

0 comments on commit 776636f

Please sign in to comment.