diff --git a/django/db/models/fields/related.py b/django/db/models/fields/related.py
index ac53515..a7edc85 100644
a
|
b
|
class ReverseSingleRelatedObjectDescriptor(object):
|
555 | 555 | for lh_field, rh_field in self.field.related_fields) |
556 | 556 | qs = self.get_queryset(instance=instance) |
557 | 557 | extra_filter = self.field.get_extra_descriptor_filter(instance) |
558 | | if isinstance(extra_filter, dict): |
559 | | params.update(extra_filter) |
560 | | qs = qs.filter(**params) |
561 | | else: |
562 | | qs = qs.filter(extra_filter, **params) |
| 558 | if len(extra_filter): |
| 559 | if isinstance(extra_filter, dict): |
| 560 | params.update(extra_filter) |
| 561 | qs = qs.filter(**params) |
| 562 | else: |
| 563 | qs = qs.filter(extra_filter, **params) |
563 | 564 | # Assuming the database enforces foreign keys, this won't fail. |
564 | 565 | rel_obj = qs.get() |
565 | 566 | if not self.field.rel.multiple: |