Skip `n` documents before returning the results. This may also be achieved using array-slicing syntax (e.g. ``User.objects[5:]``). :param n: the number of objects to skip before returning results
(self, n)
| 899 | return queryset |
| 900 | |
| 901 | def skip(self, n): |
| 902 | """Skip `n` documents before returning the results. This may also be |
| 903 | achieved using array-slicing syntax (e.g. ``User.objects[5:]``). |
| 904 | |
| 905 | :param n: the number of objects to skip before returning results |
| 906 | """ |
| 907 | queryset = self.clone() |
| 908 | queryset._skip = n |
| 909 | |
| 910 | # If a cursor object has already been created, apply the skip to it. |
| 911 | if queryset._cursor_obj: |
| 912 | queryset._cursor_obj.skip(queryset._skip) |
| 913 | |
| 914 | return queryset |
| 915 | |
| 916 | def hint(self, index=None): |
| 917 | """Added 'hint' support, telling Mongo the proper index to use for the |