Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 14
https://gerrit.sio2project.mimuw.edu.pl/3163
(
SIO-2154) Django 1.10
This change consists of multiple sub-changes targeting issues that
cannot be easily and cleanly patched in a backwards compatible manner:
(
SIO-2164) This change increments Django version to 1.10 and updates
all relevant dependencies.
(
SIO-2176) Find alternative for Field.get_prep_lookup() and
Field.get_db_prep_lookup() methods
The work done in get_prep_lookup is done in get_prep_value in our case,
so there is no need to change anything except the deletion of
get_prep_lookup.
(
SIO-2179) Remove choices argument from Select/SelectMultiple widgets'
render() and render_options() methods
(no-ticket) Django1.10 compatible urls.reverse patching
Current urlresolver was deprecated in Django 1.10. Changes made by
Django project require patching in "reverse" in two modules now.
(
SIO-2226) Fix tests for new logout behaviour
The behaviour has changed in Django 1.10 so that now the redirect is
done immediately on HTTP level. This patch modifies our tests to adapt
to this change.
(
SIO-2227) Fix argument parsing in management commands
In an earlier patch, a switch was made from optparse to argparse for
management commands. However, it was not visible in the passed test
that all positional arguments have to be declared explicitly in parser.
(
SIO-2228) Fix tests for new username field constraints
As of Django 1.10, the maximum length of a username is 150, and
username field is also required. Tests were adapted to accomodate
changes in generated HTML.
(
SIO-2229) Fix tests for new string-to-boolean conversion
As of Django 1.10, 'y' is no longer recognized as a boolean-convertible
value. Tests were adapted to use 't' instead.
Co-authored-by: Michal Sidor <
ms394731@students.mimuw.edu.pl>
Co-authored-by: Artur Puzio <
ap395026@students.mimuw.edu.pl>
Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602
https://gerrit.sio2project.mimuw.edu.pl/3163
(
SIO-2154) Django 1.10This change incremenets Django version to 1.10 and updates all relevant
dependencies.
Change-Id: Ib3eb9aee66930be76dd884f4bcd7c7e238a26602