autho = get_object_or_404(User, username=username)
profile = Profile.objects.filter(user=autho)
group = Group.objects.filter(id = profile)
<p>Permissions: {{group}}</p>
Permissions: [<Group: Moderator storage>]
[<Group: >]
, и оставить только Permissions: Moderator storage