2
I think you have incorrectly passed the stage
object instead of stage.pk
as argument in url
template tag in the index.html
page.
Try changing
{% url 'autostages:detail' stage %}
to
{% url 'autostages:detail' stage.pk %}
Actually, when you were passing stage
object as the argument, then its representation which you have defined in your model i.e. stage_number
was being used as the value of the argument. S1
not being an integer led to the error.
0
Normaly You have this issue when you trying to add or read data with int field models in your case verify that value field receive only positive small int
- [Answered ]-Django โ AngularJs Project Structure
- [Answered ]-Simplest way to override Django admin inline to request formfield_for_dbfield for each instance
- [Answered ]-Django Editable Text Field
- [Answered ]-Django single checkbox questionaire
- [Answered ]-Prevent change of field if related objects exist?
Source:stackexchange.com