Skip to content

Commit

Permalink
Always copy the join dict, even if it is empty. Refs #2941
Browse files Browse the repository at this point in the history
  • Loading branch information
coleifer committed Oct 17, 2024
1 parent 155e724 commit f021769
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions peewee.py
Original file line number Diff line number Diff line change
Expand Up @@ -7346,8 +7346,7 @@ def __init__(self, model, fields_or_models, is_default=False):

def clone(self):
clone = super(ModelSelect, self).clone()
if clone._joins:
clone._joins = dict(clone._joins)
clone._joins = dict(clone._joins)
return clone

def select(self, *fields_or_models):
Expand Down

0 comments on commit f021769

Please sign in to comment.