Setup django_tables2 for user history table

This commit is contained in:
2018-11-06 15:23:43 -05:00
parent b4ffddb24d
commit 2912977992
8 changed files with 53 additions and 11 deletions

View File

@@ -1,5 +1,6 @@
<!DOCTYPE html>
{% load static %}
{% load render_table from django_tables2 %}
<html lang="en">
<head>
<meta charset="UTF-8">
@@ -8,6 +9,7 @@
<link rel="stylesheet" href="{% static 'css/dark_bg.css' %}">
</head>
<body>
<h1>Your Listening History</h1>
<h1>{{ user_id }}'s Listening History</h1>
{% render_table user_history_table %}
</body>
</html>