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>
get
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
Solution
{{group.title}}
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)
print(group)
- brook.Dare commented on July 8th 19 at 16:56
July 8th 19 at 16:52
Solution
{{ group.name }}

In quick properties and methods of an object can look like this:
dir(Group.objects.all().first())

Find more questions by tags PythonDjango