[Fixed]-Get a list of a specific attribute from a list of model objects in a Django template

1👍

You can’t really do list comprehensions inside Django templates. You should do this in your view and pass the list in your context to the template.

Leave a comment