Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

DurationField accepts integers#3359

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
lovelydinosaur merged 1 commit intoencode:masterfromraphaelmerx:master
Sep 3, 2015

Conversation

@raphaelmerx
Copy link

Description

When sending an integer value for a duration field, I get a 500 becauseparse_duration blows up.

This PR makesDurationField accept integer values instead. I'm open to restrictingDurationField to string values, but then we should return a 400 with an error message.

Test

./runtests.py TestDurationField

@xordoquyxordoquy added the Bug labelSep 3, 2015
@lovelydinosaur
Copy link
Contributor

Seems sensible. Thanks!

@lovelydinosaurlovelydinosaur added this to the3.2.4 Release milestoneSep 3, 2015
lovelydinosaur added a commit that referenced this pull requestSep 3, 2015
@lovelydinosaurlovelydinosaur merged commitec007a7 intoencode:masterSep 3, 2015
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

Projects

None yet

Milestone

3.2.4 Release

Development

Successfully merging this pull request may close these issues.

3 participants

@raphaelmerx@lovelydinosaur@xordoquy

[8]ページ先頭

©2009-2025 Movatter.jp