Details
Description
These arguments were removed from the aforementioned methods in Django 1.10. In the second case (render_options()) selected_choices are now the first positional argument (watch out for classes derived from django's Select and SelectMultiple).
Docs: https://docs.djangoproject.com/en/2.1/releases/1.10/#miscellaneous (11th dot)
Docs: https://docs.djangoproject.com/en/2.1/releases/1.10/#miscellaneous (11th dot)
Activity
- All
- Comments
- History
- Activity
- Transitions
- Commits
Hide
Permalink
Marek Żochowski
added a comment -
This ticket can be completed only after upgrade to Django 1.10 is done.
Show
Marek Żochowski
added a comment - This ticket can be completed only after upgrade to Django 1.10 is done.
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
(
This change consists of multiple sub-changes targeting issues that
cannot be easily and cleanly patched in a backwards compatible manner:
(
all relevant dependencies.
(
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.
(
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.
(
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.
(
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.
(
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.
(
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
Show
Gerrit Gerrit
added a comment - 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
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 15
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
(
This change consists of multiple sub-changes targeting issues that
cannot be easily and cleanly patched in a backwards compatible manner:
(
all relevant dependencies.
(
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.
(
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.
(
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.
(
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.
(
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.
(
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
Show
Gerrit Gerrit
added a comment - Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 15
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
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 16
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
(
This change consists of multiple sub-changes targeting issues that
cannot be easily and cleanly patched in a backwards compatible manner:
(
all relevant dependencies.
(
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.
(
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.
(
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.
(
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.
(
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.
(
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
Show
Gerrit Gerrit
added a comment - Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 16
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
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 17
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
(
This change consists of multiple sub-changes targeting issues that
cannot be easily and cleanly patched in a backwards compatible manner:
(
all relevant dependencies.
(
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.
(
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.
(
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.
(
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.
(
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.
(
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
Show
Gerrit Gerrit
added a comment - Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 17
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
Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 18
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
(
This change consists of multiple sub-changes targeting issues that
cannot be easily and cleanly patched in a backwards compatible manner:
(
all relevant dependencies.
(
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.
(
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.
(
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.
(
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.
(
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.
(
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
Show
Gerrit Gerrit
added a comment - Change oioioi~master~Ib3eb9aee66930be76dd884f4bcd7c7e238a26602, patchset 18
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