Skip to content

Commit

Permalink
Call reflect only when use_reflection=True
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed Feb 24, 2021
1 parent ac42524 commit fd2d419
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/sdssdb/peewee/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def __new__(cls, name, bases, attrs):
database.models[fpath] = Model

# Don't do anything if this model doesn't want reflection.
if getattr(meta, 'use_reflection', False):
if getattr(meta, 'use_reflection', True):
cls.reflect(Model)

return Model
Expand Down

0 comments on commit fd2d419

Please sign in to comment.