(self)
| 735 | do_not_call_in_templates = True |
| 736 | |
| 737 | def _check_fk_val(self): |
| 738 | for field in self.field.foreign_related_fields: |
| 739 | if getattr(self.instance, field.attname) is None: |
| 740 | raise ValueError( |
| 741 | f'"{self.instance!r}" needs to have a value for field ' |
| 742 | f'"{field.attname}" before this relationship can be used.' |
| 743 | ) |
| 744 | |
| 745 | def _apply_rel_filters(self, queryset): |
| 746 | """ |
no outgoing calls
no test coverage detected