Check cascade operation. :param only_sql: :return:
(self, only_sql=None)
| 724 | return dependency |
| 725 | |
| 726 | def _check_cascade_operation(self, only_sql=None): |
| 727 | """ |
| 728 | Check cascade operation. |
| 729 | :param only_sql: |
| 730 | :return: |
| 731 | """ |
| 732 | if self.cmd == 'delete' or only_sql: |
| 733 | # This is a cascade operation |
| 734 | cascade = True |
| 735 | else: |
| 736 | cascade = False |
| 737 | return cascade |
| 738 | |
| 739 | def not_found_error_msg(self, custom_label=None): |
| 740 | return gettext("Could not find the specified {}.".format( |
no outgoing calls
no test coverage detected