Add circles, views to modify them and ability to add them to posts

This commit is contained in:
Maximilian Friedersdorff 2022-07-09 14:30:24 +01:00
parent ac962034df
commit 2cb910cc30
12 changed files with 134 additions and 16 deletions

View file

@ -0,0 +1,9 @@
{% extends "base.html" %}
{% block content %}
<h1>Circle {{ object.name }}</h1>
<form action="#" method="post">
{% csrf_token %}
{{ form }}
<input type="submit" value="Post">
</form>
{% endblock content %}

View file

@ -0,0 +1,9 @@
{% extends "base.html" %}
{% block content %}
<h1>Your Circles</h1>
<ul>
{% for circle in object_list %}
<li><a href="{% url "circles:circle_update" circle.pk %}">{{ circle.name }}</a></li>
{% endfor %}
</ul>
{% endblock content %}