How to display in the template the name of the user group?

Want to get the name of the user group to a template
deduce so
autho = get_object_or_404(User, username=username)
profile = Profile.objects.filter(user=autho)
group = Group.objects.filter(id = profile)

in the template
<p>Permissions: {{group}}</p>
Permissions: [<group: moderator storage>]</group>
The question is how to remove the [<group>]</group>, and leave only Permissions: Moderator storage
July 8th 19 at 16:48
2 answers
July 8th 19 at 16:50
nope, the class group has no title - graham commented on July 8th 19 at 16:53
: well, it means something else. Print and posomtrite :
group = Group.objects.filter(id = profile)
- brook.Dare commented on July 8th 19 at 16:56
July 8th 19 at 16:52
{{ }}

In quick properties and methods of an object can look like this:

Find more questions by tags PythonDjango