Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Python3 and Django2.2 upgrade] part 4 - Use Python3 & Django 1.11 #629

Closed
wants to merge 180 commits into from

Conversation

noliveleger
Copy link
Contributor

@noliveleger noliveleger commented Jul 16, 2020

related to #602

Tests don't pass (anymore), but pass in Django 2.2 related branches (part 6, 7, 8)

- Replaced `is_anonymous()` with `is_anonymous`
- Replaced `is_authenticated()` with `is_authenticated`
- Replaced `detail_route` and `list_route` with `action_route`
- Replaced `make_option` in management command with `add_argument`
- Use imports in url patterns (instead of string imports)
- Changed INSTALLED_APP order
- typo `@action_route` instead of `@action`
- Use djangorestframework_guardian package for
DjangoObjectPermissionsFilter
- Use `io.StringIO` instead of `StringIO.StringIO`
- Moved redis session settings to prod settings
- Added explicit "fields" property to serializers
- Used force_bytes() and smart_str() when needed
- Removed deprecated assertDictContains
jnm and others added 27 commits November 20, 2020 23:04
because it thrashes the database
…today

Remove `submission_count_for_today` from API…
…move-ui-CUD-actions-unicode

 # Conflicts:
 #	kobocat-template/templates/base.html
 #	kobocat-template/templates/data_view.html
 #	kobocat-template/templates/instance.html
 #	kobocat-template/templates/profile.html
 #	kobocat-template/templates/show.html
 #	kobocat-template/templates/stats_tables.html
 #	onadata/apps/api/tests/viewsets/test_xform_viewset.py
 #	onadata/apps/api/viewsets/xform_viewset.py
 #	onadata/apps/logger/models/xform.py
 #	onadata/apps/logger/views.py
 #	onadata/apps/main/views.py
 #	onadata/apps/viewer/views.py
…:kobotoolbox/kobocat into kobokitten-remove-ui-CUD-actions-unicode
…ons-unicode

 # Conflicts:
 #	onadata/libs/serializers/xform_serializer.py
…mission

[Feature] Add `delete_data` permission
when migrating in addition to assigning the permission at the object
level
…ermissions

Assign object-level delete_data_xform permission…
…en-py3

 # Conflicts:
 #	onadata/apps/api/tests/viewsets/test_data_viewset.py
 #	onadata/apps/api/tests/viewsets/test_xform_viewset.py
 #	onadata/apps/api/viewsets/xform_list_api.py
 #	onadata/apps/logger/models/xform.py
 #	onadata/apps/viewer/models/data_dictionary.py
 #	onadata/libs/serializers/xform_serializer.py
 #	onadata/libs/utils/export_tools.py
 #	onadata/libs/utils/user_auth.py
@noliveleger
Copy link
Contributor Author

Closed in favor of #678

@noliveleger noliveleger closed this Mar 4, 2021
@noliveleger noliveleger deleted the kobokitten-py3 branch March 11, 2021 21:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants