It would be nice to have a note in the backward incompatible changes
documentation of Django 1.7.
--
Ticket URL: <https://code.djangoproject.com/ticket/23985>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* component: Uncategorized => Core (Other)
* needs_tests: => 0
* needs_docs: => 0
* type: Uncategorized => Cleanup/optimization
* stage: Unreviewed => Accepted
Comment:
Hi,
I'm not sure what the benefit of using a `URLValidator` over a plain
`Regexvalidator` is if you're using a custom `regex` but still, I think
you're right.
The following (simplified) code would pass under Django 1.6 but raises a
`ValidationError` under 1.7:
{{{#!python
from django.core.validators import URLValidator
URLValidator(regex='.')('irc://irc.freenode.net/django')
}}}
I wonder if there's a way to fix the backwards-compatibility issue rather
than documenting it (maybe by disabling `schemes` if a custom `regex` has
been given but that might not be feasible in practice).
If we can't fix the issue, then we should certainly document it.
Thanks.
--
Ticket URL: <https://code.djangoproject.com/ticket/23985#comment:1>
* component: Core (Other) => Documentation
--
Ticket URL: <https://code.djangoproject.com/ticket/23985#comment:2>
* has_patch: 0 => 1
Comment:
[https://github.com/django/django/pull/5508 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/23985#comment:3>
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/23985#comment:4>
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"8c5b8018f69226389a1373523c41cd37883c9556" 8c5b8018]:
{{{
#!CommitTicketReference repository=""
revision="8c5b8018f69226389a1373523c41cd37883c9556"
Fixed #23985 -- Documented a backwards incompatible change in
URLValidator.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/23985#comment:5>
Comment (by Tim Graham <timograham@…>):
In [changeset:"e20a27b52b0f02480255e7af16d877d079f4fe2b" e20a27b]:
{{{
#!CommitTicketReference repository=""
revision="e20a27b52b0f02480255e7af16d877d079f4fe2b"
[1.8.x] Fixed #23985 -- Documented a backwards incompatible change in
URLValidator.
Backport of 8c5b8018f69226389a1373523c41cd37883c9556 from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/23985#comment:6>
Comment (by Tim Graham <timograham@…>):
In [changeset:"83607e2b7ad8e20a5ad4892b711f7a83aeea073e" 83607e2b]:
{{{
#!CommitTicketReference repository=""
revision="83607e2b7ad8e20a5ad4892b711f7a83aeea073e"
[1.9.x] Fixed #23985 -- Documented a backwards incompatible change in
URLValidator.
Backport of 8c5b8018f69226389a1373523c41cd37883c9556 from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/23985#comment:8>
Comment (by Tim Graham <timograham@…>):
In [changeset:"85a41b449bfe40307d1a9c482fc39dd1f82ba470" 85a41b4]:
{{{
#!CommitTicketReference repository=""
revision="85a41b449bfe40307d1a9c482fc39dd1f82ba470"
[1.7.x] Fixed #23985 -- Documented a backwards incompatible change in
URLValidator.
Backport of 8c5b8018f69226389a1373523c41cd37883c9556 from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/23985#comment:7>