Skip to content

Commit

Permalink
Fix outdated reference to ReverseRelationDescriptor.
Browse files Browse the repository at this point in the history
Fixes #1511.
  • Loading branch information
coleifer committed Feb 22, 2018
1 parent 42d9642 commit b26e59e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion peewee.py
Original file line number Diff line number Diff line change
Expand Up @@ -5722,7 +5722,7 @@ def filter(self, *args, **kwargs):
if isinstance(field, ForeignKeyField):
lm, rm = field.model, field.rel_model
field_obj = field
elif isinstance(field, ReverseRelationDescriptor):
elif isinstance(field, BackrefAccessor):
lm, rm = field.field.rel_model, field.rel_model
field_obj = field.field
query = query.ensure_join(lm, rm, field_obj)
Expand Down

0 comments on commit b26e59e

Please sign in to comment.