"Error during template rendering
In template /usr/local/lib/python3.6/site-
packages/django/contrib/admin/templates/admin/includes/fieldset.html,
error at line 19"
--
Ticket URL: <https://code.djangoproject.com/ticket/29818>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* easy: 1 => 0
Comment:
Can you give more specific steps to reproduce? At first glance, it seems
like the problem is putting a string in a foreign key field but I tried
with the URL `/admin/polls/choice/add/?question=xxx` (from the tutorial)
and don't see a crash.
--
Ticket URL: <https://code.djangoproject.com/ticket/29818#comment:1>
Comment (by Herbert Fortes):
I also tried to reproduce.
[03/Oct/2018 13:36:58] "POST
/admin/core/course/add/?_to_field=id&_popup=1&event=plsbreak HTTP/1.1" 200
10098
I do not sure if it is a valid try but no crash here.
--
Ticket URL: <https://code.djangoproject.com/ticket/29818#comment:2>
* cc: Herbert Fortes (added)
--
Ticket URL: <https://code.djangoproject.com/ticket/29818#comment:3>
Comment (by Herbert Fortes):
Replying to [comment:2 Herbert Fortes]:
> I also tried to reproduce.
>
> [03/Oct/2018 13:36:58] "POST
/admin/core/course/add/?_to_field=id&_popup=1&event=plsbreak HTTP/1.1" 200
10098
>
I am sorry for the "POST". Copy and Paste the wrong line.
But I can not reproduce the ticket.
--
Ticket URL: <https://code.djangoproject.com/ticket/29818#comment:4>
* status: new => closed
* resolution: => needsinfo
Comment:
> When giving a pure string instead of an expected integer ...
I couldn't reproduce this.
* When using the expected integer the field is pre-populated with the
correct value.
* When using a string (which is clearly invalid) the form renders
normally, without a pre-populated value.
I don't see a crash.
Thus there must be something else going on in your situation. If you are
able to pin it down to a concrete reproduce case we can investigate.
--
Ticket URL: <https://code.djangoproject.com/ticket/29818#comment:5>