[Django] #32283: bootstrap popover with form in data-content working in Django 1.11 and 2.0 but not in Django 2.1-3.1

15 views
Skip to first unread message

Django

unread,
Dec 18, 2020, 4:04:23 PM12/18/20
to django-...@googlegroups.com
#32283: bootstrap popover with form in data-content working in Django 1.11 and 2.0
but not in Django 2.1-3.1
-------------------------------------+-------------------------------------
Reporter: The Brko | Owner: (none)
Type: Bug | Status: new
Component: Error | Version: 3.1
reporting |
Severity: Release | Keywords: django, bootstrap,
blocker | popover, form
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
I have code below and it is working as it should in django 1.11 and after
upgrading it works in django 2.0 but for some reason it is not working in
higher versions of django starting from 2.1 till 3.1.4. And as I can see
it is not pasting correctly here in your preview for my code it is missing
closing > for opening button tag

Popover button:

<button
type="button"
class="btn btn-sm btn-secondary"
id="dodaj-poziv-za-clanove-tijela"
data-container="body"
data-toggle="popover"
title="Da li želite da dodate članove tijela u sastanak ?"
data-content=
"<form method='POST' action='{% url 'poziv_clanovi_dodaj'
poziv_id=poziv.id %}'>
<button type='submit' class='btn btn-success btn-sm clanovi
float-right'>Dodaj</button>
{% csrf_token %}
</form>
"
> Dodaj poziv za članove tijela</button>

In browser this button looks normal for working django versions 1.11 and
2.0 but in those that are not witch is every version above 2.0 including
2.1,2.2 and 3.0,3.1 it button has "> in it and after submitting i get
csrf token error

--
Ticket URL: <https://code.djangoproject.com/ticket/32283>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Dec 18, 2020, 4:04:59 PM12/18/20
to django-...@googlegroups.com
#32283: bootstrap popover with form in data-content working in Django 1.11 and 2.0
but not in Django 2.1-3.1
-------------------------------------+-------------------------------------
Reporter: The Brko | Owner: (none)
Type: Bug | Status: new
Component: Error reporting | Version: 3.1
Severity: Release blocker | Resolution:
Keywords: django, bootstrap, | Triage Stage:
popover, form | Unreviewed
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by The Brko):

* Attachment "popover_button_code.png" added.

Django

unread,
Dec 18, 2020, 4:05:15 PM12/18/20
to django-...@googlegroups.com
#32283: bootstrap popover with form in data-content working in Django 1.11 and 2.0
but not in Django 2.1-3.1
-------------------------------------+-------------------------------------
Reporter: The Brko | Owner: (none)
Type: Bug | Status: new
Component: Error reporting | Version: 3.1
Severity: Release blocker | Resolution:
Keywords: django, bootstrap, | Triage Stage:
popover, form | Unreviewed
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by The Brko):

* Attachment "button.png" added.

Django

unread,
Dec 18, 2020, 4:05:30 PM12/18/20
to django-...@googlegroups.com
#32283: bootstrap popover with form in data-content working in Django 1.11 and 2.0
but not in Django 2.1-3.1
-------------------------------------+-------------------------------------
Reporter: The Brko | Owner: (none)
Type: Bug | Status: new
Component: Error reporting | Version: 3.1
Severity: Release blocker | Resolution:
Keywords: django, bootstrap, | Triage Stage:
popover, form | Unreviewed
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by The Brko):

* Attachment "error.png" added.

Django

unread,
Dec 18, 2020, 4:14:13 PM12/18/20
to django-...@googlegroups.com
#32283: bootstrap popover with form in data-content working in Django 1.11 and 2.0
but not in Django 2.1-3.1
-------------------------------------+-------------------------------------
Reporter: The Brko | Owner: (none)
Type: Bug | Status: new
Component: Error reporting | Version: 3.1
Severity: Release blocker | Resolution:
Keywords: django, bootstrap, | Triage Stage:
popover, form | Unreviewed
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by The Brko):

* Attachment "button_plus_popover.png" added.

Django

unread,
Dec 18, 2020, 7:24:00 PM12/18/20
to django-...@googlegroups.com
#32283: bootstrap popover with form in data-content working in Django 1.11 and 2.0
but not in Django 2.1-3.1
-------------------------------------+-------------------------------------
Reporter: The Brko | Owner: (none)
Type: Bug | Status: closed

Component: Error reporting | Version: 3.1
Severity: Release blocker | Resolution: invalid

Keywords: django, bootstrap, | Triage Stage:
popover, form | Unreviewed
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Tim Graham):

* status: new => closed
* resolution: => invalid


Old description:

New description:

--

Comment:

This ticket tracker isn't for getting help to debug your issue. Please see
TicketClosingReasons/UseSupportChannels for ways to get help. If you
identify that Django is at fault, please reopen with an explanation.

--
Ticket URL: <https://code.djangoproject.com/ticket/32283#comment:1>

Django

unread,
Dec 19, 2020, 3:16:47 AM12/19/20
to django-...@googlegroups.com
#32283: bootstrap popover with form in data-content working in Django 1.11 and 2.0
but not in Django 2.1-3.1
-------------------------------------+-------------------------------------
Reporter: The Brko | Owner: (none)
Type: Bug | Status: closed
Component: Error reporting | Version: 3.1
Severity: Release blocker | Resolution: invalid
Keywords: django, bootstrap, | Triage Stage:
popover, form | Unreviewed
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by The Brko):

Replying to [comment:1 Tim Graham]:


> This ticket tracker isn't for getting help to debug your issue. Please
see TicketClosingReasons/UseSupportChannels for ways to get help. If you
identify that Django is at fault, please reopen with an explanation.

If something is working fine in django 2.0 and after upgrading to django
2.2.17 it doesn't and it is a problem of syntax written correctly but not
being read well it is fer to conclude that it is django's side of problem.
I will try to ask in other place as you suggested, though no much of
expectations to get issue resolved.

--
Ticket URL: <https://code.djangoproject.com/ticket/32283#comment:2>

Reply all
Reply to author
Forward
0 new messages