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

Make the session key configurable. #71

Merged
merged 1 commit into from
Apr 12, 2024
Merged

Conversation

sorrison
Copy link
Contributor

Add a new setting TZ_SESSION_KEY which defaults to the current detected_tz. This will allow integration to other django projects that make assumptions about timezones and sessions.

Add a new setting TZ_SESSION_KEY which defaults to the current
detected_tz. This will allow integration to other django projects
that make assumptions about timezones and sessions.
@bashu bashu self-requested a review April 12, 2024 13:30
Copy link
Collaborator

@bashu bashu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Collaborator

@mblayman mblayman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I found a couple of typos. Otherwise, LTGM. Could this update CHANGES.txt as well?

.. code-block:: python

# Session key to use, defaults to "detected_tz"
TZ_SESSOIN_KEY = "my-session-key"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
TZ_SESSOIN_KEY = "my-session-key"
TZ_SESSION_KEY = "my-session-key"

@@ -6,3 +6,7 @@
# Defaults to top Internet using countries.

TZ_DETECT_COUNTRIES = getattr(settings, "TZ_DETECT_COUNTRIES", ("CN", "US", "IN", "JP", "BR", "RU", "DE", "FR", "GB"))


# Session yey to use to store the detected timezone
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# Session yey to use to store the detected timezone
# Session key to use to store the detected timezone

@bashu bashu merged commit c850769 into adamcharnock:develop Apr 12, 2024
4 checks passed
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