From 102b6577fe50abfef5d5a627cca5baf4c894bc7f Mon Sep 17 00:00:00 2001
From: Bryan Brancotte <bryan.brancotte@pasteur.fr>
Date: Thu, 26 Sep 2019 16:28:37 +0200
Subject: [PATCH] fixing btn_classes customization

---
 .../templates/basetheme_bootstrap/form_host.html                | 2 +-
 basetheme_bootstrap/templates/registration/small_form_host.html | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/basetheme_bootstrap/templates/basetheme_bootstrap/form_host.html b/basetheme_bootstrap/templates/basetheme_bootstrap/form_host.html
index af8553b..23c8ec0 100644
--- a/basetheme_bootstrap/templates/basetheme_bootstrap/form_host.html
+++ b/basetheme_bootstrap/templates/basetheme_bootstrap/form_host.html
@@ -33,7 +33,7 @@
         <a role="button" class="btn btn-primary" href="{{cancel_url}}">{{ cancel_text|default:"Cancel"}}</a>
         {%endif%}
         <div class="form-class {{btn_container_classes|default:'pull-right'}}">
-            <button class="btn btn-primary {{btn_classes}}" type="submit">{{ submit_text|default:"OK" }}</button>
+            <button class="{{btn_classes|default:'btn btn-primary'}}" type="submit">{{ submit_text|default:"OK" }}</button>
         </div>
     </form>
 </div>
diff --git a/basetheme_bootstrap/templates/registration/small_form_host.html b/basetheme_bootstrap/templates/registration/small_form_host.html
index a02e157..2b5aca2 100644
--- a/basetheme_bootstrap/templates/registration/small_form_host.html
+++ b/basetheme_bootstrap/templates/registration/small_form_host.html
@@ -17,7 +17,7 @@
         {%if form%}{{ form|crispy }}{%endif%}
         {%if cancel_url%}<a role="button" class="btn btn-primary" href="{{cancel_url}}">{{ cancel_text|default:"Cancel" }}</a>{%endif%}
         <div class="form-class {{btn_container_classes|default:'pull-right'}}">
-        <button class="btn btn-primary {{btn_classes}}" type="submit">{{ submit_text|default:"OK" }}</button>
+        <button class="{{btn_classes|default:'btn btn-primary'}}" type="submit">{{ submit_text|default:"OK" }}</button>
         </div>
     </form>
 </div>
-- 
GitLab