bugfix for anonymous view 'AnonymousUser' object has no attribute 'get_groups'