From a0ff872429a0a61239b78ecd9ed80bb3b12bae98 Mon Sep 17 00:00:00 2001 From: Gareth Coles Date: Fri, 12 Apr 2019 16:00:03 +0100 Subject: Mostly-working model choice stuff --- .../templates/wiki/forms/fields/model_choice.html | 42 ++++++++++++++++++++-- 1 file changed, 40 insertions(+), 2 deletions(-) (limited to 'pydis_site/templates/wiki/forms') diff --git a/pydis_site/templates/wiki/forms/fields/model_choice.html b/pydis_site/templates/wiki/forms/fields/model_choice.html index f1104b98..c6cd53ab 100644 --- a/pydis_site/templates/wiki/forms/fields/model_choice.html +++ b/pydis_site/templates/wiki/forms/fields/model_choice.html @@ -1,8 +1,10 @@ +{% load wiki_extra %} +
{% if field.label %} {% endif %} @@ -16,7 +18,43 @@
- {{ field }} +
+ {% get_field_options field %} + + +
+
{% if field.errors %} -- cgit v1.2.3