Skip to content

Instantly share code, notes, and snippets.

@icarovirtual
Created April 21, 2020 22:28
Show Gist options
  • Save icarovirtual/977c2bc21c117f069243360961e3327c to your computer and use it in GitHub Desktop.
Save icarovirtual/977c2bc21c117f069243360961e3327c to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Articles</title>
</head>
<body>
<h3>Filter</h3>
<form method="get">
{{ form.as_p }}
<button type="submit">Filter</button>
</form>
<h3>Articles</h3>
<ul>
{% for article in articles %}
<li>{{ article.pk }} - {{ article.get_status_display }}</li>
{% endfor %}
</ul>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment