def count_active_tables(self):
        return len([1 for count in self.alias_refcount.values() if count])
A non-existent flatpage raises 404 when served through a view, even when the middleware is in use
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/Django-1.6.10/django/db/models/sql/query.py/Query.count_active_tables--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.2/django/contrib/flatpages/tests/csrf.py/FlatpageCSRFTests.test_view_non_existent_flatpage