django-pfx 1.7.6.dev57__tar.gz → 1.7.7.dev4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/PKG-INFO +1 -1
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/django_pfx.egg-info/PKG-INFO +1 -1
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/django_pfx.egg-info/SOURCES.txt +1 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/django_pfx.egg-info/scm_file_list.json +1 -0
- django_pfx-1.7.7.dev4/django_pfx.egg-info/scm_version.json +8 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/doc/source/pfx_views.md +2 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/locale/fr/LC_MESSAGES/django.po +5 -5
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/management/commands/makeapidoc.py +37 -3
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/views/fields.py +3 -1
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/views/rest_views.py +55 -23
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/requirements.txt +3 -1
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests/tests/__init__.py +1 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests/tests/test_api_doc.py +9 -3
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests/tests/test_fields_decimal.py +16 -1
- django_pfx-1.7.7.dev4/tests/tests/test_view_fields_related.py +178 -0
- django_pfx-1.7.6.dev57/django_pfx.egg-info/scm_version.json +0 -8
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/.gitignore +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/.gitlab-ci.yml +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/.pre-commit-config.yaml +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/LICENSE +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/MANIFEST.in +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/README.md +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/django_pfx.egg-info/dependency_links.txt +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/django_pfx.egg-info/requires.txt +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/django_pfx.egg-info/top_level.txt +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/doc/Makefile +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/doc/conf.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/doc/index.rst +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/doc/source/api.views.rst +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/doc/source/authentication.md +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/doc/source/decorator.md +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/doc/source/generate_openapi.md +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/doc/source/getting_started.md +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/doc/source/internationalisation.md +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/doc/source/model.md +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/doc/source/profiling.md +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/doc/source/settings.md +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/doc/source/testing.md +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/doc/source/user_jobs.md +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/img/pfx.png +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/img/pfx.svg +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/make_messages +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/manage.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/__init__.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/emails/__init__.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/emails/apps.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/emails/email_backend/__init__.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/emails/email_backend/memory_email_backend.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/emails/email_backend/q_mailjet_email_backend.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/emails/exceptions.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/emails/locale/fr/LC_MESSAGES/django.mo +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/emails/locale/fr/LC_MESSAGES/django.po +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/emails/mailjet/__init__.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/emails/mailjet/mailjet.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/emails/mailjet/message_result.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/emails/migrations/0001_initial.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/emails/migrations/0002_alter_email_headers.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/emails/migrations/0003_alter_email_options.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/emails/migrations/0004_alter_email_mail_from.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/emails/migrations/0005_lowercase_verbose_names.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/emails/migrations/0006_alter_email_attachments.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/emails/migrations/0007_email_sensitive.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/emails/migrations/__init__.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/emails/models/__init__.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/emails/models/email.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/emails/providers/__init__.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/emails/providers/email_django_q_executor.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/emails/shortcuts.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/emails/tasks.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/emails/templates/emails/base_template.html +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/emails/templates/emails/base_template.txt +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/emails/templates/emails/base_template_subject.txt +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/emails/test.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/emails/urls.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/emails/views/__init__.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/emails/views/email_rest_view.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/__init__.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/apidoc/__init__.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/apidoc/parameters.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/apidoc/schema.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/apidoc/tags.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/apps.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/decorator/__init__.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/decorator/rest.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/default_settings.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/exceptions.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/fields/__init__.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/fields/decimal_field.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/fields/media_field.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/fields/minutes_duration_field.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/fields/rich_text_field.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/http/__init__.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/http/json_response.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/locale/fr/LC_MESSAGES/django.mo +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/management/__init__.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/management/commands/__init__.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/management/commands/profile.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/mfa/__init__.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/mfa/authenticator.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/mfa/base.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/mfa/email.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/mfa/legacy.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/mfa/sms.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/middleware/__init__.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/middleware/authentication.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/middleware/locale.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/middleware/profiling.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/middleware/request_too_big_middleware.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/middleware/ws_cookie_authentication_middleware.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/migrations/0001_initial.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/migrations/0002_pfxpermissionsuser.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/migrations/0003_delete_pfxpermissionsuser.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/migrations/0004_alter_loginban_failed_counter_and_more.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/migrations/0005_mfadevice_mfadevice_mfa_device_unique_backend.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/migrations/0006_alter_pfxuser_managers.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/migrations/0007_alter_pfxuser_options.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/migrations/0008_lowercase_verbose_names.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/migrations/__init__.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/migrations/operations/__init__.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/migrations/operations/permissions.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/models/__init__.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/models/abstract_pfx_base_user.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/models/attachment_mixin.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/models/cache_mixins.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/models/login_ban.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/models/mfa_device.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/models/mfa_user_mixin.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/models/not_null_fields.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/models/ordered_model_mixin.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/models/pfx_models.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/models/pfx_user.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/models/user_filtered_queryset_mixin.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/serializers/__init__.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/serializers/json.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/settings.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/shortcuts.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/sms/__init__.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/sms/backends/__init__.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/sms/backends/base.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/sms/backends/console.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/sms/backends/memory.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/storage/__init__.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/storage/exceptions.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/storage/local_storage.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/storage/s3_storage.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/tasks.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/templates/registration/otp_code_email.txt +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/templates/registration/otp_code_subject.txt +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/templates/registration/password_reset_email.txt +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/templates/registration/password_reset_subject.txt +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/templates/registration/welcome_email.txt +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/templates/registration/welcome_subject.txt +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/test.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/urls.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/version_check.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/views/__init__.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/views/authentication_views.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/views/filters_views.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/views/locale_views.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/views/media_rest_view_mixin.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/views/mfa_authentication_views.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/views/ordered_rest_view_mixin.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/views/parameters/__init__.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/views/parameters/date_format.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/views/parameters/groups.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/views/parameters/list_count.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/views/parameters/list_items.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/views/parameters/list_mode.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/views/parameters/list_order.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/views/parameters/list_search.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/views/parameters/media_redirect.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/views/parameters/meta_fields.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/views/parameters/meta_filters.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/views/parameters/meta_orders.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/views/parameters/subset.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/views/parameters/subset_limit.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/views/parameters/subset_offset.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/views/parameters/subset_page.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/views/parameters/subset_page_size.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/views/parameters/subset_page_subset.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/xml_test_runner.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/settings/__init__.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/settings/dev.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/userjobs/__init__.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/userjobs/apps.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/userjobs/locale/fr/LC_MESSAGES/django.mo +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/userjobs/locale/fr/LC_MESSAGES/django.po +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/userjobs/migrations/0001_initial.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/userjobs/migrations/0002_alter_userjob_options_alter_userjob_auto_queued_and_more.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/userjobs/migrations/0003_clean_scheduled_tasks.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/userjobs/migrations/0004_userjob_summary_url.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/userjobs/migrations/0005_swappable_user_job.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/userjobs/migrations/0006_lowercase_verbose_names.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/userjobs/migrations/0007_user_job_shelf_life_setting.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/userjobs/migrations/__init__.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/userjobs/models/__init__.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/userjobs/models/user_job.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/userjobs/models/user_job_attachment.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/userjobs/providers/__init__.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/userjobs/providers/user_job_django_q_executor.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/userjobs/providers/user_job_websocket_channel_provider.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/userjobs/tasks.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/userjobs/urls.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/userjobs/views/__init__.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/userjobs/views/user_job_attachment_view.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/userjobs/views/user_job_view.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/userjobs/views/user_websocket_consumer.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pyproject.toml +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/serve-doc +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/setup.cfg +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/setup.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests/__init__.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests/apps.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests/channel_group_send_calls.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests/locale/fr/LC_MESSAGES/django.po +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests/mfa_urls.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests/migrations/0001_initial.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests/migrations/0002_remove_book_local_file.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests/migrations/__init__.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests/models.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests/settings/__init__.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests/settings/ci.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests/settings/common.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests/settings/dev.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests/settings/dev_custom_example.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests/settings/dev_default.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests/tests/basic_api_errors.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests/tests/basic_api_test.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests/tests/mfa_test_utils.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests/tests/parallel_scenarios.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests/tests/test_api_doc_search.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests/tests/test_auth_api.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests/tests/test_body_mixin.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests/tests/test_cache.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests/tests/test_client.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests/tests/test_emails_email_api.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests/tests/test_emails_email_model.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests/tests/test_emails_q_mailjet_email_backend.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests/tests/test_emails_send_email_message.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests/tests/test_emails_test_tools.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests/tests/test_fields_choices.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests/tests/test_fields_date.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests/tests/test_fields_help_text.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests/tests/test_fields_media_local.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests/tests/test_fields_media_s3.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests/tests/test_fields_minutes_duration.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests/tests/test_fields_one2many.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests/tests/test_fields_rich_text.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests/tests/test_fields_time.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests/tests/test_filters.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests/tests/test_locale_api.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests/tests/test_mfa_legacy.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests/tests/test_mfa_login_api.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests/tests/test_mfa_setup_api.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests/tests/test_ordered_rest_view_mixin.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests/tests/test_perm_tests.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests/tests/test_permissions.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests/tests/test_perms_api.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests/tests/test_post_migrate_groups_update.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests/tests/test_profiling_middleware.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests/tests/test_settings.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests/tests/test_shortcuts.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests/tests/test_table_file_helpers.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests/tests/test_test_runner.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests/tests/test_timezone_middleware.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests/tests/test_tools.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests/tests/test_user_job_api.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests/tests/test_user_job_messages.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests/tests/test_user_job_model.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests/tests/test_user_queryset.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests/tests/test_user_websocket.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests/tests/test_verbose_names.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests/tests/test_version_check.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests/tests/test_view_decorators.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests/tests/test_view_fields.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests/tests/test_ws_cookie_middleware.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests/urls.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests/views.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests_base_user/__init__.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests_base_user/migrations/__init__.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests_base_user/settings/__init__.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests_base_user/settings/ci.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests_base_user/settings/common.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests_base_user/settings/dev.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests_base_user/settings/dev_custom_example.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests_base_user/settings/dev_default.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests_base_user/tests/__init__.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests_base_user/tests/test_api.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests_base_user/tests/test_auth_api.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests_base_user/urls.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests_base_user/views.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests_custom_user/__init__.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests_custom_user/migrations/0001_initial.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests_custom_user/migrations/__init__.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests_custom_user/models.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests_custom_user/settings/__init__.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests_custom_user/settings/ci.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests_custom_user/settings/common.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests_custom_user/settings/dev.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests_custom_user/settings/dev_custom_example.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests_custom_user/settings/dev_default.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests_custom_user/tests/__init__.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests_custom_user/tests/test_api.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests_custom_user/tests/test_auth_api.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests_custom_user/urls.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests_custom_user/views.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests_custom_user_job/__init__.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests_custom_user_job/migrations/0001_initial.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests_custom_user_job/migrations/0002_lowercase_verbose_names.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests_custom_user_job/migrations/0003_user_job_shelf_life_setting.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests_custom_user_job/migrations/__init__.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests_custom_user_job/models.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests_custom_user_job/providers.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests_custom_user_job/scope.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests_custom_user_job/settings/__init__.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests_custom_user_job/settings/ci.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests_custom_user_job/settings/common.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests_custom_user_job/settings/dev.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests_custom_user_job/settings/dev_custom_example.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests_custom_user_job/settings/dev_default.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests_custom_user_job/tests/__init__.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests_custom_user_job/tests/test_user_job.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests_custom_user_job/urls.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests_user_email_login/__init__.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests_user_email_login/migrations/0001_initial.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests_user_email_login/migrations/__init__.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests_user_email_login/models.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests_user_email_login/settings/__init__.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests_user_email_login/settings/ci.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests_user_email_login/settings/common.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests_user_email_login/settings/dev.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests_user_email_login/settings/dev_custom_example.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests_user_email_login/settings/dev_default.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests_user_email_login/tests/__init__.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests_user_email_login/tests/test_api.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests_user_email_login/tests/test_auth_api.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests_user_email_login/urls.py +0 -0
- {django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/tests_user_email_login/views.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: django-pfx
|
|
3
|
-
Version: 1.7.
|
|
3
|
+
Version: 1.7.7.dev4
|
|
4
4
|
Summary: Django PFX is a toolkit designed to streamline the development of RESTful APIs using the Django framework.
|
|
5
5
|
Author: Hervé Martinet
|
|
6
6
|
Author-email: herve.martinet@gmail.com
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: django-pfx
|
|
3
|
-
Version: 1.7.
|
|
3
|
+
Version: 1.7.7.dev4
|
|
4
4
|
Summary: Django PFX is a toolkit designed to streamline the development of RESTful APIs using the Django framework.
|
|
5
5
|
Author: Hervé Martinet
|
|
6
6
|
Author-email: herve.martinet@gmail.com
|
|
@@ -272,6 +272,7 @@ tests/tests/test_verbose_names.py
|
|
|
272
272
|
tests/tests/test_version_check.py
|
|
273
273
|
tests/tests/test_view_decorators.py
|
|
274
274
|
tests/tests/test_view_fields.py
|
|
275
|
+
tests/tests/test_view_fields_related.py
|
|
275
276
|
tests/tests/test_ws_cookie_middleware.py
|
|
276
277
|
tests_base_user/__init__.py
|
|
277
278
|
tests_base_user/urls.py
|
|
@@ -262,6 +262,7 @@
|
|
|
262
262
|
"tests/tests/test_version_check.py",
|
|
263
263
|
"tests/tests/test_view_decorators.py",
|
|
264
264
|
"tests/tests/test_view_fields.py",
|
|
265
|
+
"tests/tests/test_view_fields_related.py",
|
|
265
266
|
"tests/tests/test_ws_cookie_middleware.py",
|
|
266
267
|
"tests/urls.py",
|
|
267
268
|
"tests/views.py",
|
|
@@ -43,6 +43,8 @@ Provide a list service for a model class.
|
|
|
43
43
|
By default, list fields are taken from fields attributes.
|
|
44
44
|
They can also be listed in the list_fields attribute if you need to have
|
|
45
45
|
different fields in the list than in other views.
|
|
46
|
+
Relations are loaded from the fields used for the list, rather than from
|
|
47
|
+
detail-only fields.
|
|
46
48
|
```python
|
|
47
49
|
from pfx.pfxcore.decorator import rest_view
|
|
48
50
|
from pfx.pfxcore.views import BaseRestView, ListRestViewMixin
|
{django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/locale/fr/LC_MESSAGES/django.po
RENAMED
|
@@ -7,7 +7,7 @@ msgid ""
|
|
|
7
7
|
msgstr ""
|
|
8
8
|
"Project-Id-Version: \n"
|
|
9
9
|
"Report-Msgid-Bugs-To: \n"
|
|
10
|
-
"POT-Creation-Date: 2026-
|
|
10
|
+
"POT-Creation-Date: 2026-12-01 11:04+0100\n"
|
|
11
11
|
"PO-Revision-Date: 2021-06-22 23:31+0200\n"
|
|
12
12
|
"Last-Translator: \n"
|
|
13
13
|
"Language-Team: \n"
|
|
@@ -388,23 +388,23 @@ msgstr "Le paramètre object est requis pour move={move}."
|
|
|
388
388
|
msgid "object {pk} does not exists in this move context."
|
|
389
389
|
msgstr "object {pk} n’existe pas dans ce contexte de déplacement."
|
|
390
390
|
|
|
391
|
-
#: views/rest_views.py:
|
|
391
|
+
#: views/rest_views.py:250 views/rest_views.py:407
|
|
392
392
|
#, python-brace-format
|
|
393
393
|
msgid "{obj} cannot be deleted because it is referenced by other objects."
|
|
394
394
|
msgstr ""
|
|
395
395
|
"{obj} ne peut pas être supprimé car il est référencé par d’autres objets."
|
|
396
396
|
|
|
397
|
-
#: views/rest_views.py:
|
|
397
|
+
#: views/rest_views.py:386
|
|
398
398
|
#, python-brace-format
|
|
399
399
|
msgid "{model} {obj} created."
|
|
400
400
|
msgstr "{model} {obj} créé."
|
|
401
401
|
|
|
402
|
-
#: views/rest_views.py:
|
|
402
|
+
#: views/rest_views.py:387
|
|
403
403
|
#, python-brace-format
|
|
404
404
|
msgid "{model} {obj} updated."
|
|
405
405
|
msgstr "{model} {obj} modifié."
|
|
406
406
|
|
|
407
|
-
#: views/rest_views.py:
|
|
407
|
+
#: views/rest_views.py:1338
|
|
408
408
|
#, python-brace-format
|
|
409
409
|
msgid "{model} {obj} deleted."
|
|
410
410
|
msgstr "{model} {obj} supprimé."
|
{django_pfx-1.7.6.dev57 → django_pfx-1.7.7.dev4}/pfx/pfxcore/management/commands/makeapidoc.py
RENAMED
|
@@ -167,6 +167,37 @@ def get_operations(view, url, auths, groups):
|
|
|
167
167
|
yield op, spec
|
|
168
168
|
|
|
169
169
|
|
|
170
|
+
def remove_unused_components(spec):
|
|
171
|
+
"""Remove the schemas and parameters that no operation uses.
|
|
172
|
+
|
|
173
|
+
Every view registers all its schemas, and the parameters are global:
|
|
174
|
+
without this, the documentation of a group would describe the whole API.
|
|
175
|
+
"""
|
|
176
|
+
components = dict(
|
|
177
|
+
schemas=spec.components.schemas,
|
|
178
|
+
parameters=spec.components.parameters)
|
|
179
|
+
used = set()
|
|
180
|
+
|
|
181
|
+
def walk(value):
|
|
182
|
+
if isinstance(value, dict):
|
|
183
|
+
ref = value.get('$ref')
|
|
184
|
+
if isinstance(ref, str) and ref.startswith('#/components/'):
|
|
185
|
+
_, _, kind, name = ref.split('/', 3)
|
|
186
|
+
if kind in components and (kind, name) not in used:
|
|
187
|
+
used.add((kind, name))
|
|
188
|
+
walk(components[kind].get(name))
|
|
189
|
+
for v in value.values():
|
|
190
|
+
walk(v)
|
|
191
|
+
elif isinstance(value, list):
|
|
192
|
+
for v in value:
|
|
193
|
+
walk(v)
|
|
194
|
+
|
|
195
|
+
walk(spec.to_dict()['paths'])
|
|
196
|
+
for kind, items in components.items():
|
|
197
|
+
for name in [n for n in items if (kind, n) not in used]:
|
|
198
|
+
del items[name]
|
|
199
|
+
|
|
200
|
+
|
|
170
201
|
def get_spec(groups):
|
|
171
202
|
re_pk = re.compile(r'<(\w+:)?id>')
|
|
172
203
|
spec = APISpec(**{**DEFAULT_TEMPLATE, **settings.PFX_OPENAPI_TEMPLATE})
|
|
@@ -182,9 +213,12 @@ def get_spec(groups):
|
|
|
182
213
|
spec.components.schema(schema.id(), schema.to_schema())
|
|
183
214
|
for url in view.get_urls():
|
|
184
215
|
url['fixed_path'] = re_pk.sub(r'<\g<1>pk>', url['path'])
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
216
|
+
operations = dict(get_operations(view, url, auths, groups))
|
|
217
|
+
if operations:
|
|
218
|
+
spec.path(
|
|
219
|
+
path=from_django_path(url['fixed_path']),
|
|
220
|
+
operations=operations)
|
|
221
|
+
remove_unused_components(spec)
|
|
188
222
|
for key in sorted(__TAGS__.keys()):
|
|
189
223
|
spec.tag(__TAGS__[key].to_dict())
|
|
190
224
|
|
|
@@ -205,7 +205,7 @@ class ViewField:
|
|
|
205
205
|
value.filter(self.related_filter) if self.related_filter
|
|
206
206
|
else value.all())
|
|
207
207
|
ordering = qs.model._meta.ordering
|
|
208
|
-
if ordering:
|
|
208
|
+
if ordering and qs._result_cache is None:
|
|
209
209
|
qs = qs.order_by(*ordering)
|
|
210
210
|
return [self._related_json_repr(o) for o in qs]
|
|
211
211
|
|
|
@@ -466,6 +466,8 @@ class ViewModelField(ViewField):
|
|
|
466
466
|
value = value if value != '' else None
|
|
467
467
|
elif self.field_type == FieldType.FloatField:
|
|
468
468
|
value = value if value != '' else None
|
|
469
|
+
elif self.field_type == FieldType.DecimalField:
|
|
470
|
+
value = value if value != '' else None
|
|
469
471
|
elif self.field_type == FieldType.MinutesDurationField:
|
|
470
472
|
if value is None:
|
|
471
473
|
pass
|
|
@@ -80,7 +80,7 @@ class ModelMixin():
|
|
|
80
80
|
|
|
81
81
|
def get_queryset(
|
|
82
82
|
self, select_related=None, prefetch_related=None,
|
|
83
|
-
from_queryset=None):
|
|
83
|
+
from_queryset=None, no_select_prefetch=False):
|
|
84
84
|
"""Get the queryset for the view model.
|
|
85
85
|
|
|
86
86
|
The returned queryset is filtered according to user rights.
|
|
@@ -95,14 +95,17 @@ class ModelMixin():
|
|
|
95
95
|
"""
|
|
96
96
|
qs = self.apply_user_filter(
|
|
97
97
|
from_queryset or self.model._default_manager.all())
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
98
|
+
if not no_select_prefetch:
|
|
99
|
+
select_related = (
|
|
100
|
+
self.get_fields_select_related() |
|
|
101
|
+
set(select_related or []))
|
|
102
|
+
if select_related:
|
|
103
|
+
qs = qs.select_related(*select_related)
|
|
104
|
+
prefetch_related = (
|
|
105
|
+
self.get_fields_prefetch_related() |
|
|
106
|
+
set(prefetch_related or []))
|
|
107
|
+
if prefetch_related:
|
|
108
|
+
qs = qs.prefetch_related(*prefetch_related)
|
|
106
109
|
return qs
|
|
107
110
|
|
|
108
111
|
def get_object(self, **kwargs):
|
|
@@ -137,9 +140,9 @@ class ModelMixin():
|
|
|
137
140
|
def get_list_queryset(self, select_related=None, prefetch_related=None):
|
|
138
141
|
"""Get a queryset for the view model dedicated for lists.
|
|
139
142
|
|
|
140
|
-
This method returns the same result as :code:`get_queryset
|
|
141
|
-
|
|
142
|
-
the
|
|
143
|
+
This method returns the same result as :code:`get_queryset`, but
|
|
144
|
+
removes relation loading derived from detail fields. List fields add
|
|
145
|
+
their required relations when the results are serialized.
|
|
143
146
|
|
|
144
147
|
:param select_related: Arguments for queryset select_related
|
|
145
148
|
:type select_related: :class:`list[str]`
|
|
@@ -148,8 +151,19 @@ class ModelMixin():
|
|
|
148
151
|
:returns: The queryset
|
|
149
152
|
:rtype: :class:`django.db.models.QuerySet`
|
|
150
153
|
"""
|
|
151
|
-
|
|
152
|
-
|
|
154
|
+
qs = self.get_queryset(no_select_prefetch=True)
|
|
155
|
+
|
|
156
|
+
select_related = (
|
|
157
|
+
self.get_list_fields_select_related() |
|
|
158
|
+
set(select_related or []))
|
|
159
|
+
if select_related:
|
|
160
|
+
qs = qs.select_related(*select_related)
|
|
161
|
+
prefetch_related = (
|
|
162
|
+
self.get_list_fields_prefetch_related() |
|
|
163
|
+
set(prefetch_related or []))
|
|
164
|
+
if prefetch_related:
|
|
165
|
+
qs = qs.prefetch_related(*prefetch_related)
|
|
166
|
+
return qs
|
|
153
167
|
|
|
154
168
|
@classmethod
|
|
155
169
|
def _process_fields(cls, fields):
|
|
@@ -190,6 +204,14 @@ class ModelMixin():
|
|
|
190
204
|
for _f in field.prefetch_related]),
|
|
191
205
|
None)
|
|
192
206
|
|
|
207
|
+
def get_list_fields_select_related(self):
|
|
208
|
+
""":meta private: Undocumented because it must be changed."""
|
|
209
|
+
return None
|
|
210
|
+
|
|
211
|
+
def get_list_fields_prefetch_related(self):
|
|
212
|
+
""":meta private: Undocumented because it must be changed."""
|
|
213
|
+
return None
|
|
214
|
+
|
|
193
215
|
@property
|
|
194
216
|
def model_name(self):
|
|
195
217
|
"""Get the model verbose name.
|
|
@@ -627,6 +649,12 @@ class ListRestViewMixin(ModelResponseMixin):
|
|
|
627
649
|
#: The schema for responses.
|
|
628
650
|
model_list_schema = None
|
|
629
651
|
|
|
652
|
+
_result_count = False
|
|
653
|
+
_result_items = True
|
|
654
|
+
# Default is short, if _get_list is not called
|
|
655
|
+
# (i.e. in navigation meta from detail view)
|
|
656
|
+
_result_mode = 'short'
|
|
657
|
+
|
|
630
658
|
def get_list_fields(self):
|
|
631
659
|
"""Return the processed field list for lists.
|
|
632
660
|
|
|
@@ -820,6 +848,8 @@ class ListRestViewMixin(ModelResponseMixin):
|
|
|
820
848
|
|
|
821
849
|
def get_list_fields_select_related(self):
|
|
822
850
|
""":meta private: Undocumented because it must be changed."""
|
|
851
|
+
if self._result_mode != 'list':
|
|
852
|
+
return set()
|
|
823
853
|
return cache.get_or_set(
|
|
824
854
|
class_key(self.__class__, 'list_fields', 'select_related'),
|
|
825
855
|
lambda: set([
|
|
@@ -829,6 +859,8 @@ class ListRestViewMixin(ModelResponseMixin):
|
|
|
829
859
|
|
|
830
860
|
def get_list_fields_prefetch_related(self):
|
|
831
861
|
""":meta private: Undocumented because it must be changed."""
|
|
862
|
+
if self._result_mode != 'list':
|
|
863
|
+
return set()
|
|
832
864
|
return cache.get_or_set(
|
|
833
865
|
class_key(self.__class__, 'list_fields', 'prefetch_related'),
|
|
834
866
|
lambda: set([
|
|
@@ -844,10 +876,6 @@ class ListRestViewMixin(ModelResponseMixin):
|
|
|
844
876
|
:returns: The generator
|
|
845
877
|
:rtype: :class:`generator`
|
|
846
878
|
"""
|
|
847
|
-
qs = qs.select_related(
|
|
848
|
-
*self.get_list_fields_select_related()
|
|
849
|
-
).prefetch_related(
|
|
850
|
-
*self.get_list_fields_prefetch_related())
|
|
851
879
|
for o in qs:
|
|
852
880
|
yield self.serialize_object(o, **{
|
|
853
881
|
_f.alias: _f.to_json(o, self)
|
|
@@ -936,9 +964,14 @@ class ListRestViewMixin(ModelResponseMixin):
|
|
|
936
964
|
def _get_list(self, *args, **kwargs):
|
|
937
965
|
res = {}
|
|
938
966
|
meta = {}
|
|
967
|
+
self._result_count = get_bool(self.request.GET, 'count')
|
|
968
|
+
self._result_items = get_bool(
|
|
969
|
+
self.request.GET, 'items', not self._result_count)
|
|
970
|
+
self._result_mode = self.request.GET.get('mode', 'list')
|
|
971
|
+
|
|
939
972
|
qs = self.get_list_queryset()
|
|
940
973
|
subset = self.request.GET.get('subset', self.Subset.NONE)
|
|
941
|
-
if
|
|
974
|
+
if self._result_count:
|
|
942
975
|
meta['count'] = qs.count()
|
|
943
976
|
if subset == self.Subset.PAGINATION:
|
|
944
977
|
qs, meta['subset'] = self.pagination_result(qs)
|
|
@@ -946,15 +979,14 @@ class ListRestViewMixin(ModelResponseMixin):
|
|
|
946
979
|
qs, meta['subset'] = self.offset_result(qs)
|
|
947
980
|
elif settings.PFX_MAX_LIST_RESULT_SIZE:
|
|
948
981
|
qs = qs[:settings.PFX_MAX_LIST_RESULT_SIZE]
|
|
949
|
-
if
|
|
950
|
-
|
|
951
|
-
match mode:
|
|
982
|
+
if self._result_items:
|
|
983
|
+
match self._result_mode:
|
|
952
984
|
case 'list':
|
|
953
985
|
res['items'] = list(self.get_list_result(qs))
|
|
954
986
|
case 'select':
|
|
955
987
|
res['items'] = list(self.get_short_list_result(qs))
|
|
956
988
|
case _:
|
|
957
|
-
m = f'get_{
|
|
989
|
+
m = f'get_{self._result_mode}_result'
|
|
958
990
|
res['items'] = list(getattr(self, m)(qs))
|
|
959
991
|
meta.update(self._get_list_extra_meta(res))
|
|
960
992
|
if meta:
|
|
@@ -46,4 +46,5 @@ from .test_user_websocket import TestUserWebsocket
|
|
|
46
46
|
from .test_verbose_names import VerboseNamesTest
|
|
47
47
|
from .test_view_decorators import ViewDecoratorTest
|
|
48
48
|
from .test_view_fields import ViewFieldTest
|
|
49
|
+
from .test_view_fields_related import TestViewFieldsRelated
|
|
49
50
|
from .test_ws_cookie_middleware import TestWSCookieMiddleware
|
|
@@ -368,18 +368,24 @@ class ApiDocTest(TestAssertMixin, TestCase):
|
|
|
368
368
|
|
|
369
369
|
spec = get_spec({'cache', }).to_dict()
|
|
370
370
|
self.assertJEExists(spec, 'paths./authors/cache/{pk}.get')
|
|
371
|
-
self.assertJENotExists(spec, 'paths./authors-annotate/{pk}
|
|
371
|
+
self.assertJENotExists(spec, 'paths./authors-annotate/{pk}')
|
|
372
372
|
|
|
373
|
+
# A group keeps only its paths, and the schemas and parameters they
|
|
374
|
+
# use: the other views stay out of its documentation.
|
|
373
375
|
spec = get_spec({'custom', }).to_dict()
|
|
374
|
-
self.assertJENotExists(spec, 'paths./authors/cache/{pk}
|
|
376
|
+
self.assertJENotExists(spec, 'paths./authors/cache/{pk}')
|
|
375
377
|
self.assertJEExists(spec, 'paths./authors-annotate/{pk}.get')
|
|
378
|
+
self.assertEqual(
|
|
379
|
+
{k.split('.')[0] for k in spec['components']['schemas']},
|
|
380
|
+
{'Author'})
|
|
381
|
+
self.assertEqual(spec['components']['parameters'], {})
|
|
376
382
|
|
|
377
383
|
spec = get_spec({'cache', 'custom'}).to_dict()
|
|
378
384
|
self.assertJEExists(spec, 'paths./authors/cache/{pk}.get')
|
|
379
385
|
self.assertJEExists(spec, 'paths./authors-annotate/{pk}.get')
|
|
380
386
|
|
|
381
387
|
spec = get_spec({'default', }).to_dict()
|
|
382
|
-
self.assertJENotExists(spec, 'paths./authors/cache/{pk}
|
|
388
|
+
self.assertJENotExists(spec, 'paths./authors/cache/{pk}')
|
|
383
389
|
self.assertJENotExists(spec, 'paths./authors-annotate/{pk}.get')
|
|
384
390
|
|
|
385
391
|
def test_view_get_urls(self):
|
|
@@ -22,6 +22,8 @@ class TestDecimalModel(JSONReprMixin, models.Model):
|
|
|
22
22
|
monetary = DecimalField(
|
|
23
23
|
max_digits=10, decimal_places=5, json_decimal_places=2,
|
|
24
24
|
currency="CHF")
|
|
25
|
+
native_decimal = models.DecimalField(
|
|
26
|
+
max_digits=10, decimal_places=5, null=True, blank=True)
|
|
25
27
|
|
|
26
28
|
@rest_property(field=DecimalField(
|
|
27
29
|
max_digits=10, decimal_places=5, json_decimal_places=2,
|
|
@@ -39,7 +41,8 @@ class TestDecimalModel(JSONReprMixin, models.Model):
|
|
|
39
41
|
class DecimalModelRestView(FakeViewMixin, RestView):
|
|
40
42
|
default_public = True
|
|
41
43
|
model = TestDecimalModel
|
|
42
|
-
fields = [
|
|
44
|
+
fields = [
|
|
45
|
+
'decimal', 'percent', 'monetary', 'price_double', 'native_decimal']
|
|
43
46
|
|
|
44
47
|
|
|
45
48
|
urlpatterns = [
|
|
@@ -97,3 +100,15 @@ class TestFieldsDecimal(TestAssertMixin, TestCase):
|
|
|
97
100
|
t.refresh_from_db()
|
|
98
101
|
self.assertEqual(t.decimal, Decimal('3.12121'))
|
|
99
102
|
self.assertEqual(t.percent, Decimal('0.0770'))
|
|
103
|
+
|
|
104
|
+
def test_native_decimal_update_empty_string(self):
|
|
105
|
+
t = TestDecimalModel.objects.create(
|
|
106
|
+
decimal=0, percent=0, monetary=0, native_decimal=Decimal('1.23'))
|
|
107
|
+
|
|
108
|
+
response = self.client.put(
|
|
109
|
+
f'/api/test-decimal-model/{t.pk}', dict(native_decimal=""))
|
|
110
|
+
self.assertRC(response, 200)
|
|
111
|
+
self.assertJE(response, 'native_decimal', None)
|
|
112
|
+
|
|
113
|
+
t.refresh_from_db()
|
|
114
|
+
self.assertIsNone(t.native_decimal)
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
from django.db import connection, models
|
|
2
|
+
from django.test import TestCase
|
|
3
|
+
from django.test.utils import CaptureQueriesContext, override_settings
|
|
4
|
+
from django.urls import include, path
|
|
5
|
+
|
|
6
|
+
from pfx.pfxcore import register_views
|
|
7
|
+
from pfx.pfxcore.decorator import rest_view
|
|
8
|
+
from pfx.pfxcore.models import JSONReprMixin
|
|
9
|
+
from pfx.pfxcore.test import APIClient, TestAssertMixin
|
|
10
|
+
from pfx.pfxcore.views import VF, RestView
|
|
11
|
+
from tests.views import FakeViewMixin
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class ParentModel(JSONReprMixin, models.Model):
|
|
15
|
+
name = models.CharField(max_length=30)
|
|
16
|
+
|
|
17
|
+
class Meta:
|
|
18
|
+
ordering = ['pk']
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class ChildModel(JSONReprMixin, models.Model):
|
|
22
|
+
name = models.CharField(max_length=30)
|
|
23
|
+
parent = models.ForeignKey(
|
|
24
|
+
ParentModel, related_name='children', on_delete=models.CASCADE)
|
|
25
|
+
|
|
26
|
+
class Meta:
|
|
27
|
+
ordering = ['-pk']
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
@rest_view("/prefetch-both-parents")
|
|
31
|
+
class PrefetchBothParentRestView(FakeViewMixin, RestView):
|
|
32
|
+
"""Custom parent rest view with prefetch for both list and detail views."""
|
|
33
|
+
default_public = True
|
|
34
|
+
model = ParentModel
|
|
35
|
+
fields = ['name', VF('children', readonly=True)]
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
@rest_view("/prefetch-detail-parents")
|
|
39
|
+
class PrefetchDetailParentRestView(FakeViewMixin, RestView):
|
|
40
|
+
"""Custom parent rest view with prefetch for detail view only."""
|
|
41
|
+
default_public = True
|
|
42
|
+
model = ParentModel
|
|
43
|
+
fields = ['name', VF('children', readonly=True)]
|
|
44
|
+
list_fields = ['name']
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
@rest_view("/select-both-children")
|
|
48
|
+
class SelectBothChildRestView(FakeViewMixin, RestView):
|
|
49
|
+
"""Custom child rest view with prefetch for both list and detail views."""
|
|
50
|
+
default_public = True
|
|
51
|
+
model = ChildModel
|
|
52
|
+
fields = ['name', 'parent']
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
@rest_view("/select-detail-children")
|
|
56
|
+
class SelectDetailChildRestView(FakeViewMixin, RestView):
|
|
57
|
+
"""Custom child rest view with prefetch for detail view only."""
|
|
58
|
+
default_public = True
|
|
59
|
+
model = ChildModel
|
|
60
|
+
fields = ['name', 'parent']
|
|
61
|
+
list_fields = ['name']
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
urlpatterns = [
|
|
65
|
+
path('api/', include(register_views(PrefetchBothParentRestView))),
|
|
66
|
+
path('api/', include(register_views(PrefetchDetailParentRestView))),
|
|
67
|
+
path('api/', include(register_views(SelectBothChildRestView))),
|
|
68
|
+
path('api/', include(register_views(SelectDetailChildRestView))),
|
|
69
|
+
path('api/', include('pfx.pfxcore.urls')),
|
|
70
|
+
]
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
@override_settings(ROOT_URLCONF=__name__)
|
|
74
|
+
class TestViewFieldsRelated(TestAssertMixin, TestCase):
|
|
75
|
+
def setUp(self):
|
|
76
|
+
self.client = APIClient(default_locale='en')
|
|
77
|
+
|
|
78
|
+
@classmethod
|
|
79
|
+
def setUpTestData(cls):
|
|
80
|
+
with connection.schema_editor() as schema_editor:
|
|
81
|
+
schema_editor.create_model(ParentModel)
|
|
82
|
+
schema_editor.create_model(ChildModel)
|
|
83
|
+
|
|
84
|
+
cls.parent = ParentModel.objects.create(name='Parent 1')
|
|
85
|
+
cls.child1 = ChildModel.objects.create(
|
|
86
|
+
name='Child 1', parent=cls.parent)
|
|
87
|
+
cls.child2 = ChildModel.objects.create(
|
|
88
|
+
name='Child 2', parent=cls.parent)
|
|
89
|
+
|
|
90
|
+
def test_select_related(self):
|
|
91
|
+
with CaptureQueriesContext(connection) as queries:
|
|
92
|
+
response = self.client.get(
|
|
93
|
+
f'/api/select-both-children/{self.child1.pk}')
|
|
94
|
+
self.assertRC(response, 200)
|
|
95
|
+
self.assertJE(response, 'name', 'Child 1')
|
|
96
|
+
self.assertJE(response, 'parent.pk', self.parent.pk)
|
|
97
|
+
self.assertEqual(len(queries.captured_queries), 1)
|
|
98
|
+
query = queries.captured_queries[0]
|
|
99
|
+
self.assertIn('INNER JOIN "tests_parentmodel"', query['sql'])
|
|
100
|
+
|
|
101
|
+
with CaptureQueriesContext(connection) as queries:
|
|
102
|
+
response = self.client.get('/api/select-both-children')
|
|
103
|
+
self.assertRC(response, 200)
|
|
104
|
+
self.assertSize(response, 'items', 2)
|
|
105
|
+
self.assertJE(response, 'items.@0.parent.pk', self.parent.pk)
|
|
106
|
+
self.assertEqual(len(queries.captured_queries), 1)
|
|
107
|
+
query = queries.captured_queries[0]
|
|
108
|
+
self.assertIn('INNER JOIN "tests_parentmodel"', query['sql'])
|
|
109
|
+
|
|
110
|
+
with CaptureQueriesContext(connection) as queries:
|
|
111
|
+
response = self.client.get(
|
|
112
|
+
f'/api/select-detail-children/{self.child1.pk}')
|
|
113
|
+
self.assertRC(response, 200)
|
|
114
|
+
self.assertJE(response, 'name', 'Child 1')
|
|
115
|
+
self.assertJE(response, 'parent.pk', self.parent.pk)
|
|
116
|
+
self.assertEqual(len(queries.captured_queries), 1)
|
|
117
|
+
query = queries.captured_queries[0]
|
|
118
|
+
self.assertIn('INNER JOIN "tests_parentmodel"', query['sql'])
|
|
119
|
+
|
|
120
|
+
with CaptureQueriesContext(connection) as queries:
|
|
121
|
+
response = self.client.get('/api/select-detail-children')
|
|
122
|
+
self.assertRC(response, 200)
|
|
123
|
+
self.assertSize(response, 'items', 2)
|
|
124
|
+
self.assertJENotExists(response, 'items.@0.parent')
|
|
125
|
+
self.assertEqual(len(queries.captured_queries), 1)
|
|
126
|
+
query = queries.captured_queries[0]
|
|
127
|
+
self.assertNotIn('INNER JOIN "tests_parentmodel"', query['sql'])
|
|
128
|
+
|
|
129
|
+
def test_prefetch_related(self):
|
|
130
|
+
with CaptureQueriesContext(connection) as queries:
|
|
131
|
+
response = self.client.get(
|
|
132
|
+
f'/api/prefetch-both-parents/{self.parent.pk}')
|
|
133
|
+
self.assertRC(response, 200)
|
|
134
|
+
self.assertJE(response, 'name', 'Parent 1')
|
|
135
|
+
self.assertSize(response, 'children', 2)
|
|
136
|
+
self.assertJE(response, 'children.@0.pk', self.child2.pk)
|
|
137
|
+
self.assertEqual(len(queries.captured_queries), 2)
|
|
138
|
+
query = queries.captured_queries[0]
|
|
139
|
+
self.assertIn('FROM "tests_parentmodel"', query['sql'])
|
|
140
|
+
# Children are prefetched in a separate query
|
|
141
|
+
query = queries.captured_queries[1]
|
|
142
|
+
self.assertIn('FROM "tests_childmodel"', query['sql'])
|
|
143
|
+
|
|
144
|
+
with CaptureQueriesContext(connection) as queries:
|
|
145
|
+
response = self.client.get('/api/prefetch-both-parents')
|
|
146
|
+
self.assertRC(response, 200)
|
|
147
|
+
self.assertSize(response, 'items', 1)
|
|
148
|
+
self.assertSize(response, 'items.@0.children', 2)
|
|
149
|
+
self.assertJE(
|
|
150
|
+
response, 'items.@0.children.@0.pk', self.child2.pk)
|
|
151
|
+
self.assertEqual(len(queries.captured_queries), 2)
|
|
152
|
+
query = queries.captured_queries[0]
|
|
153
|
+
self.assertIn('FROM "tests_parentmodel"', query['sql'])
|
|
154
|
+
# Children are prefetched in a separate query
|
|
155
|
+
query = queries.captured_queries[1]
|
|
156
|
+
self.assertIn('FROM "tests_childmodel"', query['sql'])
|
|
157
|
+
|
|
158
|
+
with CaptureQueriesContext(connection) as queries:
|
|
159
|
+
response = self.client.get(
|
|
160
|
+
f'/api/prefetch-detail-parents/{self.parent.pk}')
|
|
161
|
+
self.assertRC(response, 200)
|
|
162
|
+
self.assertJE(response, 'name', 'Parent 1')
|
|
163
|
+
self.assertSize(response, 'children', 2)
|
|
164
|
+
self.assertEqual(len(queries.captured_queries), 2)
|
|
165
|
+
query = queries.captured_queries[0]
|
|
166
|
+
self.assertIn('FROM "tests_parentmodel"', query['sql'])
|
|
167
|
+
# Children are prefetched in a separate query
|
|
168
|
+
query = queries.captured_queries[1]
|
|
169
|
+
self.assertIn('FROM "tests_childmodel"', query['sql'])
|
|
170
|
+
|
|
171
|
+
with CaptureQueriesContext(connection) as queries:
|
|
172
|
+
response = self.client.get('/api/prefetch-detail-parents')
|
|
173
|
+
self.assertRC(response, 200)
|
|
174
|
+
self.assertSize(response, 'items', 1)
|
|
175
|
+
self.assertJENotExists(response, 'items.@0.children')
|
|
176
|
+
self.assertEqual(len(queries.captured_queries), 1)
|
|
177
|
+
query = queries.captured_queries[0]
|
|
178
|
+
self.assertIn('FROM "tests_parentmodel"', query['sql'])
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|