Skip to content

Conversation

loicgasser
Copy link
Contributor

Replaces #179
Fixes #171
Fixes #178

  • Now expiry format defaults to whatever is used Django REST framework
  • This behavior can be overriden via EXPIRY_DATETIME_FORMAT setting
  • fully customizable expiry format via format_expiry_datetime
  • fully customizable response payload via get_post_response_data

Copy link
Collaborator

@johnraz johnraz left a comment

Choose a reason for hiding this comment

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

Amazing work! PR looks good to me as is. Huge thanks for your patience and time 👍🏻

@loicgasser
Copy link
Contributor Author

Thanks, no problem. It was a pleasure.

@loicgasser
Copy link
Contributor Author

@belugame any chance to have a second pair of eyes on this and maybe a version bump?

@belugame belugame changed the base branch from master to develop June 1, 2019 06:19
@belugame belugame merged commit 4e87188 into jazzband:develop Jun 1, 2019
Copy link
Collaborator

@belugame belugame left a comment

Choose a reason for hiding this comment

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

@loicgasser Thank you very much for your high quality work! Just released it as 4.1.0 :)

or a Python [strftime format][strftime format] string.

[DATETIME_FORMAT]: https://www.django-rest-framework.org/api-guide/settings/#date-and-time-formatting
[strftime format]: https://docs.python.org/3/library/time.html#time.strftime
Copy link
Collaborator

Choose a reason for hiding this comment

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

👍 very nice!

dontexit pushed a commit to dontexit/django-rest-knox that referenced this pull request Jan 24, 2024
Add setting for expiry format, add helper methods in login view
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