fix limit / offset for django queries (#230)