<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def next_blocks(self, quantity=-1):
 """Get the next blocks in order."""

        blocks = (EighthBlock.objects.get_blocks_this_year().order_by(
            "date", "block_letter").filter(Q(date__gt=self.date) | (Q(date=self.date) & Q(block_letter__gt=self.block_letter))))
        if quantity == -1:
            return blocks
        return blocks[:quantity]