Fixes _meta AttributeError in Django 1.5.*