reload config is internal

This commit is contained in:
Benedikt Bartscher 2024-10-28 21:36:43 +01:00
parent 4ee16bab75
commit 9f655dbccd
No known key found for this signature in database

View File

@ -29,7 +29,7 @@ def validate_field_name(bases: List[Type["BaseModel"]], field_name: str) -> None
from reflex.utils.exceptions import VarNameError
# can't use reflex.config.environment here cause of circular import
reload = os.getenv("RELOAD_CONFIG", "").lower() == "true"
reload = os.getenv("__RELOAD_CONFIG", "").lower() == "true"
for base in bases:
try:
if not reload and getattr(base, field_name, None):