I have a problem and i dont know how to solve it. I got this template generating /list/a,b,c, etc. And i want to show in this a,b,c url only model with the same letter.
list template
<div class="panel-body anime-list text-center">
<div class="btn-group btn-group-xs">
{% for i in alphabet %}
<a href="{{i}}" class="btn">{{i}}</a>
{%endfor%}
</div>
</div>
model's
class Anime(models.Model):
title = models.CharField(max_length=300, unique=True)
ongoing = models.BooleanField(default=True)
add_date = models.DateTimeField('date published')
How can i filter that in another desired template