fix 500
This commit is contained in:
parent
b63185a42e
commit
1123adeb52
2 changed files with 8 additions and 2 deletions
|
@ -53,7 +53,7 @@
|
|||
</details>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% include "_sidebar.html" with user=collection.owner show_profile=1 fold_profile=1 %}
|
||||
{% include "_sidebar.html" with show_profile=1 fold_profile=1 %}
|
||||
</main>
|
||||
{% include "partial/_footer.html" %}
|
||||
</body>
|
||||
|
|
|
@ -491,7 +491,13 @@ def collection_edit(request, collection_uuid=None):
|
|||
if request.GET.get("title"):
|
||||
form.instance.title = request.GET.get("title")
|
||||
return render(
|
||||
request, "collection_edit.html", {"form": form, "collection": collection}
|
||||
request,
|
||||
"collection_edit.html",
|
||||
{
|
||||
"form": form,
|
||||
"collection": collection,
|
||||
"user": collection.owner if collection else request.user,
|
||||
},
|
||||
)
|
||||
elif request.method == "POST":
|
||||
form = (
|
||||
|
|
Loading…
Add table
Reference in a new issue