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

add IPAddressField, update docs#2618

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

Closed
Ins1ne wants to merge4 commits intoencode:masterfromIns1ne:feature/ipaddress

Conversation

@Ins1ne
Copy link
Contributor

for this#1853

@jpadillajpadilla added this to the3.1.0 Release milestoneFeb 28, 2015
@lovelydinosaur
Copy link
Contributor

Looks good! I could do with some time to review the implementation fully, simply to make sure if there are any clean-ups we can make or not, but everything else seems great.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

This check is unnecessary.'' will always just pass though to the finalreturn.

@lovelydinosaur
Copy link
Contributor

Going to drop the 3.1 marker on this so that I make sure to take the time to review properly. (We're about to release tomorrow, so...)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I may be wrong, but this line looks like we assume the user will always use 'both' protocol, but what happen if we can't unpack the ipv4 address to an ipv6 one? In this case ':' won't be present inside the ip string and the whole check will fail or be skipped.

Is this situation already handled by the use of ip_address_validators method? Should we add a particular test case that handle the situation where the user pass (protocol='ipv4', unpack_ipv4=True) ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Sounds right!

@jpadilla
Copy link
Contributor

Closing this in favor of#2747

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

5 participants

@Ins1ne@lovelydinosaur@jpadilla@andreagrandi@LilyFirefly

[8]ページ先頭

©2009-2025 Movatter.jp