MCPcopy Create free account

hub / github.com/HackSoftware/Django-Styleguide-Example / functions

Functions216 in github.com/HackSoftware/Django-Styleguide-Example

Functiondrf_default_with_modifications_exception_handler
(exc, ctx)
styleguide_example/api/exception_handlers.py:12
Functionemail_send
(self, email_id)
styleguide_example/emails/tasks.py:19
Methodenforce_csrf
(self, request)
styleguide_example/api/mixins.py:59
Methodform_valid
(self, form)
styleguide_example/blog_examples/admin_2fa/views.py:59
Methodget
(self, request, user_id)
styleguide_example/users/apis.py:22
Methodget
(self, request, *args, **kwargs)
styleguide_example/blog_examples/google_login_server_flow/raw/apis.py:19
Methodget
(self, request, *args, **kwargs)
styleguide_example/blog_examples/google_login_server_flow/raw/views.py:14
Methodget
(self, request, *args, **kwargs)
styleguide_example/blog_examples/google_login_server_flow/raw/views.py:30
Methodget
(self, request, *args, **kwargs)
styleguide_example/blog_examples/google_login_server_flow/sdk/apis.py:19
Methodget
(self, request, *args, **kwargs)
styleguide_example/blog_examples/google_login_server_flow/sdk/views.py:14
Methodget
(self, request, *args, **kwargs)
styleguide_example/blog_examples/google_login_server_flow/sdk/views.py:30
Methodget
(self, request)
styleguide_example/authentication/apis.py:40
Methodget
(self, request)
styleguide_example/errors/apis.py:26
Methodget
(self, request)
styleguide_example/errors/apis.py:35
Methodget_form
That's a bit of a hack Dynamically change self.form, before delegating to the actual ModelAdmin.get_form Proper kwargs are fo
styleguide_example/files/admin.py:32
Methodget_form
(self, *args, **kwargs)
styleguide_example/blog_examples/admin_2fa/views.py:52
Methodget_form_class
(self)
styleguide_example/blog_examples/admin_2fa/views.py:49
Functionget_future_roster_start_date
(roster_obj)
styleguide_example/testing_examples/tests/factories.py:71
Methodget_paginated_data
(self, data)
styleguide_example/api/pagination.py:25
Methodget_queryset
We want to defer the `html` and `plain_text` fields, since we are not showing them in the list & we don't need to fetch them.
styleguide_example/emails/admin.py:12
Methodget_readonly_fields
We want to show those fields only when we have an existing object.
styleguide_example/files/admin.py:43
Methodget_readonly_fields
(self, request, obj=None)
styleguide_example/blog_examples/admin.py:20
Methodget_urls
(self)
styleguide_example/custom_admin/sites.py:13
Functiongunicorn_event_name_mapper
(logger, name, event_dict)
gunicorn.conf.py:53
Functionhacksoft_proposed_exception_handler
{ "message": "Error message", "extra": {} }
styleguide_example/api/exception_handlers.py:34
Methodhandle
(self, *args, **kwargs)
styleguide_example/tasks/management/commands/setup_periodic_tasks.py:17
Methodhas_permission
(self, request)
styleguide_example/custom_admin/sites.py:41
Functioninner
(_bound_self, *_func_args, **_func_kwargs)
styleguide_example/blog_examples/celery_non_concurrent/tasks.py:18
Methodis_staff
(self)
styleguide_example/users/models.py:69
Methodlogin
(self, request, *args, **kwargs)
styleguide_example/custom_admin/sites.py:23
Functionnon_concurrent_task
(_func=None, *args, **kwargs)
styleguide_example/blog_examples/celery_non_concurrent/tasks.py:13
Methodpost
(self, request)
styleguide_example/users/apis.py:68
Methodpost
(self, request, user_id)
styleguide_example/users/apis.py:91
Methodpost
(self, request)
styleguide_example/files/apis.py:15
Methodpost
(self, request, *args, **kwargs)
styleguide_example/files/apis.py:27
Methodpost
(self, request, file_id)
styleguide_example/files/apis.py:38
Methodpost
(self, request)
styleguide_example/files/apis.py:53
Methodpost
(self, request)
styleguide_example/authentication/apis.py:22
Methodpost
(self, request)
styleguide_example/authentication/apis.py:45
Methodpost
(self, request)
styleguide_example/authentication/apis.py:64
Functionprint_qs
(queryset, *, fields: list[str] | None = None, exclude: list[str] | None = None)
styleguide_example/blog_examples/print_qs_in_shell/utils.py:21
Methodqr_code
(self, obj)
styleguide_example/blog_examples/admin.py:17
Functionreceiver_bind_extra_request_metadata
(sender, signal, task=None, logger=None, **kwargs)
styleguide_example/tasks/celery.py:38
Functionreceiver_setup_logging
(loglevel, logfile, format, colorize, **kwargs)
styleguide_example/tasks/celery.py:32
Methodrosters
(obj, create, extracted, **kwargs)
styleguide_example/testing_examples/tests/factories.py:93
Methodsave_model
(self, request, obj, form, change)
styleguide_example/users/admin.py:27
Methodsave_model
(self, request, obj, form, change)
styleguide_example/files/admin.py:53
Functionschool_course_create
( *, name: str, slug: Optional[str] = None, school: School, students: Iterable[Student],
styleguide_example/testing_examples/services/school_courses.py:16
Methodsend_email
(self, request, queryset)
styleguide_example/emails/admin.py:23
MethodsetUp
(self)
styleguide_example/blog_examples/f_expressions/tests/test_f_expressions.py:8
MethodsetUp
(self)
styleguide_example/authentication/tests/apis/test_user_login.py:11
MethodsetUp
(self)
styleguide_example/authentication/tests/apis/test_user_login.py:85
MethodsetUp
(self)
styleguide_example/api/tests/pagination/test_get_paginated_response.py:40
MethodsetUp
(self)
styleguide_example/common/tests/services/test_model_update.py:15
Methodstudents
(obj, create, extracted, **kwargs)
styleguide_example/testing_examples/tests/factories.py:34
Methodtest_existing_user_can_login_and_access_apis
1. Create user 2. Assert login is OK 3. Call /api/auth/me 4. Assert valid response
styleguide_example/authentication/tests/apis/test_user_login.py:27
Methodtest_existing_user_can_login_and_access_apis
1. Create user 2. Assert login is OK 3. Call /api/auth/me 4. Assert valid response
styleguide_example/authentication/tests/apis/test_user_login.py:101
Methodtest_existing_user_can_logout
1. Create user 2. Login, can access APIs 3. Logout, cannot access APIs
styleguide_example/authentication/tests/apis/test_user_login.py:62
Methodtest_existing_user_can_logout
1. Create user 2. Login, can access APIs 3. Logout, cannot access APIs
styleguide_example/authentication/tests/apis/test_user_login.py:137
Methodtest_inline_serializer_creates_a_serializer
(self)
styleguide_example/api/tests/utils/test_inline_serializer.py:11
Methodtest_inline_serializer_passes_kwargs
(self)
styleguide_example/api/tests/utils/test_inline_serializer.py:39
Methodtest_json_increment_in_model
(self)
styleguide_example/blog_examples/f_expressions/tests/test_f_expressions.py:13
Methodtest_model_update_does_not_automatically_update_updated_at_if_kwarg_is_false
(self)
styleguide_example/common/tests/services/test_model_update.py:150
Methodtest_model_update_does_not_automatically_update_updated_at_if_model_does_not_have_it
(self)
styleguide_example/common/tests/services/test_model_update.py:173
Methodtest_model_update_does_nothing
(self)
styleguide_example/common/tests/services/test_model_update.py:20
Methodtest_model_update_doesnt_automatically_set_updated_at_if_models_has_it_and_value_is_passed
(self)
styleguide_example/common/tests/services/test_model_update.py:130
Methodtest_model_update_raises_error_when_called_with_non_existent_field
(self)
styleguide_example/common/tests/services/test_model_update.py:65
Methodtest_model_update_sets_automatically_updated_at_if_model_has_it_and_no_value_is_passed
(self)
styleguide_example/common/tests/services/test_model_update.py:112
Methodtest_model_update_updates_many_to_many_fields
(self)
styleguide_example/common/tests/services/test_model_update.py:74
Methodtest_model_update_updates_only_passed_fields_from_data
(self)
styleguide_example/common/tests/services/test_model_update.py:39
Methodtest_model_update_updates_standard_and_many_to_many_fields
(self)
styleguide_example/common/tests/services/test_model_update.py:97
Functiontest_non_concurrent_task
()
styleguide_example/blog_examples/celery_non_concurrent/tasks.py:49
Methodtest_non_existing_user_cannot_login
(self)
styleguide_example/authentication/tests/apis/test_user_login.py:18
Methodtest_non_existing_user_cannot_login
(self)
styleguide_example/authentication/tests/apis/test_user_login.py:92
Methodtest_object_can_be_created_when_constraint_is_not_hit
(self)
styleguide_example/common/tests/models/test_random_model.py:33
Methodtest_object_create_with_database_constraint_fails_with_integrity_error
(self)
styleguide_example/common/tests/models/test_random_model.py:24
Methodtest_object_save_with_database_constraint_fails_with_validation_error_when_full_cleaned
(self)
styleguide_example/common/tests/models/test_random_model.py:12
Methodtest_response_is_paginated_correctly
(self)
styleguide_example/api/tests/pagination/test_get_paginated_response.py:46
Methodtest_selector_does_not_return_school_courses_for_other_schools
(self)
styleguide_example/testing_examples/tests/selectors/test_school_list_school_courses.py:36
Methodtest_selector_raises_validation_error_if_unexpected_period_is_given
(self)
styleguide_example/testing_examples/tests/selectors/test_school_list_school_courses.py:24
Methodtest_selector_returns_all_school_courses_for_a_given_period
(self)
styleguide_example/testing_examples/tests/selectors/test_school_list_school_courses.py:70
Methodtest_selector_returns_all_school_courses_for_a_given_start_date
(self)
styleguide_example/testing_examples/tests/selectors/test_school_list_school_courses.py:45
Methodtest_selector_returns_all_school_courses_if_no_dates_passed
(self)
styleguide_example/testing_examples/tests/selectors/test_school_list_school_courses.py:28
Methodtest_service_does_not_create_roster_if_period_is_not_valid
(self, roster_validate_period_mock)
styleguide_example/testing_examples/tests/services/test_roster_create.py:32
Methodtest_service_does_not_raise_error_if_valid_period
(self)
styleguide_example/testing_examples/tests/services/test_roster_validate_period.py:14
Methodtest_service_doesn_not_school_course_period_if_dates_are_passed
(self, roster_validate_period_mock)
styleguide_example/testing_examples/tests/services/test_roster_create.py:54
Methodtest_service_raises_error_if_different_schools
(self)
styleguide_example/testing_examples/tests/services/test_roster_create.py:20
Methodtest_service_uses_school_course_period_for_default_period
(self, roster_validate_period_mock)
styleguide_example/testing_examples/tests/services/test_roster_create.py:44
Methodtest_services_raises_error_for_rosters_outside_period
(self)
styleguide_example/testing_examples/tests/services/test_roster_validate_period.py:36
Methodtest_student_is_rostered_to_all_active_school_courses
(self, roster_create_mock, school_courses_mock)
styleguide_example/testing_examples/tests/services/test_student_create.py:16
Methodtest_timestamps_with_auto_behavior
Timestamps are set automatically
styleguide_example/blog_examples/tests/models/test_timestamps.py:15
Methodtest_timestamps_with_default_behavior
Timestamps are set by default
styleguide_example/blog_examples/tests/models/test_timestamps.py:101
Methodtest_timestamps_with_mixed_behavior
Timestamps are set automatically / by default
styleguide_example/blog_examples/tests/models/test_timestamps.py:57
Methodtest_timestamps_with_opinionated_behavior
created_at is only set by default
styleguide_example/blog_examples/tests/models/test_timestamps.py:145
Methodtest_user_with_capitalized_email_cannot_be_created
(self)
styleguide_example/users/tests/services/test_user_create.py:14
Methodtest_user_without_password_is_created_with_unusable_one
(self)
styleguide_example/users/tests/services/test_user_create.py:9
Functiontraces_sampler
We want to track only web transactions, and ignore all Celery transactions. Here's an example context from Celery: {
config/settings/sentry.py:20
Functiontrigger_application_error
()
styleguide_example/errors/services.py:95
Functiontrigger_django_404
()
styleguide_example/errors/services.py:37
Functiontrigger_django_object_does_not_exist
()
styleguide_example/errors/services.py:33
← previousnext →101–200 of 216, ranked by callers