Skip to content

Conversation

carltongibson
Copy link
Collaborator

Fixes #5767. Updates & Closes #5768.

  • Adjusts templates to allow integer field 0 values. Thanks @nikhil96sher
  • Adjusts test case.

@carltongibson carltongibson changed the title Pr/5768 Made TemplateHTMLRenderer render 0 for IntegerField inputs. Feb 16, 2018
@carltongibson carltongibson added this to the 3.8 Release milestone Feb 16, 2018
@carltongibson carltongibson changed the title Made TemplateHTMLRenderer render 0 for IntegerField inputs. Made TemplateHTMLRenderer render IntegerField inputs when value is 0. Feb 16, 2018
@carltongibson carltongibson merged commit e34fd99 into encode:master Feb 16, 2018
@carltongibson carltongibson deleted the pr/5768 branch February 16, 2018 15:48
pchiquet pushed a commit to pchiquet/django-rest-framework that referenced this pull request Nov 17, 2020
…`. (encode#5834)

* Fix 0 value IntegerField in TemplateHTMLRenderer

Signed-off-by: Nikhil Sheoran <[email protected]>

* Remove unnecessary `field.value != “”` check

* Adjust test case

Uses `vertical` templates only.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants