[Answer]-Excluding certain records from a Django queryset as long as those records are not the first or last X records

1👍

Use queries to get the PKs of the records you want to exclude, then exclude them in your primary query (.exclude(pk__in=...)),

Leave a comment