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

Ability to store metadata/settings as part of Client <-> User relationship #7

Open
eshaan7 opened this issue Apr 28, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@eshaan7
Copy link
Owner

eshaan7 commented Apr 28, 2021

There can be use cases where developers wish to store settings/metadata about a user specific to a client. (For example, theme name, styling, avatar, display name, etc.)

Few initial implementation ideas:

  • Provide an abstract UserClient model with user_id and client_id fields that developers could subclass.
  • Provide an UserClientSettings model with user_id, client_id, metadata = JsonField fields that developers can directly use.

Model should provide a shortcut method:

def get_current(request: "rest_framework.request.Request") -> UserClient

More ideas welcome.

@eshaan7 eshaan7 added the enhancement New feature or request label Apr 28, 2021
@eshaan7
Copy link
Owner Author

eshaan7 commented May 27, 2021

Some initial code is there in branch: dev-issue7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant