Restricts the query by altering either the start, end or both offsets.
(self, low=None, high=None)
| 860 | self.models.add(model) |
| 861 | |
| 862 | def set_limits(self, low=None, high=None): |
| 863 | """Restricts the query by altering either the start, end or both offsets.""" |
| 864 | if low is not None: |
| 865 | self.start_offset = int(low) |
| 866 | |
| 867 | if high is not None: |
| 868 | self.end_offset = int(high) |
| 869 | |
| 870 | def clear_limits(self): |
| 871 | """Clears any existing limits.""" |
no outgoing calls