mirror of
https://github.com/django/django.git
synced 2025-08-22 11:34:33 +00:00
[1.7.x] Fixed #22943 -- Correctly serialize compiled regexes.
Thanks to antialiasis at gmail dot com for the patch.
This commit is contained in:
parent
1f889800d6
commit
2f0cc4f5fb
3 changed files with 61 additions and 19 deletions
|
@ -1390,13 +1390,6 @@ Miscellaneous
|
|||
a relation from the related object back to the content type for filtering,
|
||||
ordering and other query operations.
|
||||
|
||||
* When a model field's :attr:`~django.db.models.Field.validators` contains
|
||||
a :class:`~django.core.validators.RegexValidator`, the regular expression
|
||||
must now be passed as a regular expression string. You can no longer use a
|
||||
pre-compiled regular expression in this case, as it is not serializable.
|
||||
The :attr:`~django.core.validators.RegexValidator.flags` attribute was added
|
||||
to :class:`~django.core.validators.RegexValidator` to simplify this change.
|
||||
|
||||
* When running tests on PostgreSQL, the :setting:`USER` will need read access
|
||||
to the built-in ``postgres`` database. This is in lieu of the previous
|
||||
behavior of connecting to the actual non-test database.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue