Changes between Version 3 and Version 6 of Ticket #26378
- Timestamp:
- Mar 21, 2016, 1:07:50 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #26378
- Property Owner changed from to
- Property Triage Stage Unreviewed → Accepted
- Property Status new → assigned
- Property Has patch set
-
Ticket #26378 – Description
v3 v6 5 5 # Django==1.8.6 6 6 from django.db import models 7 7 8 class TestIPNoUnpack(models.Model): 8 9 ip = models.GenericIPAddressField(null=False, protocol='both', unpack_ipv4=False) … … 15 16 16 17 > python manage.py shell 17 Python 2.7.6 (default, Sep 9 2014, 15:04:36)18 Type "copyright", "credits" or "license" for more information.19 20 IPython 4.0.1 -- An enhanced Interactive Python.21 ? -> Introduction and overview of IPython's features.22 %quickref -> Quick reference.23 help -> Python's own help system.24 object? -> Details about 'object', use 'object??' for extra details.25 18 26 19 In [1]: from my.app.models import TestIPNoUnpack, TestIPUnpack … … 36 29 37 30 In [6]: testipnounpack.clean_fields() 38 ---------------------------------------------------------------------------39 ValidationError Traceback (most recent call last)40 <ipython-input-6-9a763f56e907> in <module>()41 ----> 1 testipnounpack.clean_fields()42 43 .../lib/python2.7/site-packages/django/db/models/base.pyc in clean_fields(self, exclude)44 119445 1195 if errors:46 -> 1196 raise ValidationError(errors)47 119748 1198 @classmethod49 31 50 32 ValidationError: {'ip': [u'Enter a valid IPv4 or IPv6 address.']} … … 53 35 54 36 In [8]: testipnounpack2.clean_fields() 55 ---------------------------------------------------------------------------56 ValidationError Traceback (most recent call last)57 <ipython-input-8-e228d0855286> in <module>()58 ----> 1 testipnounpack2.clean_fields()59 60 .../lib/python2.7/site-packages/django/db/models/base.pyc in clean_fields(self, exclude)61 119462 1195 if errors:63 -> 1196 raise ValidationError(errors)64 119765 1198 @classmethod66 37 67 38 ValidationError: {'ip': [u'Enter a valid IPv4 or IPv6 address.']}