#5622: empty ipaddress raises an error (invalid input syntax for type inet: "")
------------------------------+---------------------------------------------
Reporter: anonymous | Owner: nobody
Status: reopened | Component: Admin interface
Version: newforms-admin | Resolution:
Keywords: | Stage: Unreviewed
Has_patch: 0 | Needs_docs: 0
Needs_tests: 0 | Needs_better_patch: 0
------------------------------+---------------------------------------------
Changes (by anonymous):
* status: closed => reopened
* resolution: invalid =>
Comment:
Replying to [comment:2 ubernostrum]:
> Sounds like you've perhaps set `blank=True` on the field and forgotten
to supply a fallback value elsewhere in your code. Please ask -- with
detailed information -- on the django-users mailing list.
the model definition has this field:
reported_ip = models.IPAddressField(blank=True, null=True,
default=None)
The problem is that when i edit an object containing this field, in the
admin site, i want to be able to leave this field empty. I'm only working
with models definition and I don't have other code.
--
Ticket URL: <http://code.djangoproject.com/ticket/5622#comment:3>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---