fixes flatpage inclusion of a template requiring a queryset