def get_absolute_url(self):
return reverse('dashboard', kwargs={'guild_id': self.guild_id})
{% for guild in guilds %}
<h3>{{ guild }}</h3>
<h3>{{ guild.name }}</h3>
<h3>{{ guild.id }}</h3>
<a href="{{ guild.get_absolute_url }}">dashboard</a>
{% endfor %}