File tree Expand file tree Collapse file tree 3 files changed +2
-4
lines changed
Expand file tree Collapse file tree 3 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 1- from IPy import IP
2-
31from django import forms
42from django .core import validators
53from django .core .exceptions import ValidationError
64from django .db import models
75
6+ from ipaddress import ip_address as IP
87
98class IPNetworkFormField (forms .Field ):
109 def to_python (self , value ):
Original file line number Diff line number Diff line change @@ -27,4 +27,4 @@ def test_ipv4(self):
2727 def test_invalid (self ):
2828 with self .assertRaises (ValueError ) as e :
2929 MirrorRsync .objects .create (ip = "8.8.8.8.8" , mirror = self .mirror )
30- self .assertIn ('IPv4 Address with more than 4 bytes ' , str (e .exception ))
30+ self .assertIn ('does not appear to be an IPv4 or IPv6 address ' , str (e .exception ))
Original file line number Diff line number Diff line change 11-e git+git://github.com/fredj/cssmin.git@master#egg=cssmin
22Django == 3.0.7
3- IPy == 1.00
43Markdown == 3.2.1
54bencode.py == 2.0.0
65django-countries == 5.5
You can’t perform that action at this time.
0 commit comments