Example of method when one want to change default behaviour of it
(self, *args, **kwargs)
| 4166 | |
| 4167 | class CustomQuerySet(QuerySet): |
| 4168 | def delete(self, *args, **kwargs): |
| 4169 | """Example of method when one want to change default behaviour of it""" |
| 4170 | return 0 |
| 4171 | |
| 4172 | class CustomQuerySetManager(QuerySetManager): |
| 4173 | queryset_class = CustomQuerySet |
no outgoing calls
no test coverage detected