Fixed handling of Django group class.