how to get group name using User in django
问题 I am stuck in django's group module can any one tell me how to solve it. my problem is now i'm dispalying the username of the logged-in user, i want to display group-name and the profiles present in that group along with the username.and my views are like this, def user(request): context = {'user': request.user} return render_to_response('username.html', context, context_instance=RequestContext(request)) now what do I need to add in order to achieve my requirement forms.py class LoginForm