Move account views & related resources into a separate Django app #8386

Closed
opened 2025-12-29 20:36:06 +01:00 by adam · 0 comments
Owner

Originally created by @jeremystretch on GitHub (Jul 30, 2023).

Originally assigned to: @jeremystretch on GitHub.

Proposed Changes

Move the following resources to a new account app:

  • All user-specific views (profile, preferences, password change form, etc.)
  • URL patterns for user-specific views
  • The UserToken proxy model

Similarly, all templates for user-specific views shall be moved from templates/users/account/ to templates/account/.

Justification

Following on from #12590, it has become apparent that a separate app should be used to contain resources used exclusively for user account management. This will allow us to better organize user-specific views and their related resources from the conventional models under the users app. It will also better enable us to employ the UserToken proxy model for users to manage their own API tokens.

Originally created by @jeremystretch on GitHub (Jul 30, 2023). Originally assigned to: @jeremystretch on GitHub. ### Proposed Changes Move the following resources to a new `account` app: - All user-specific views (profile, preferences, password change form, etc.) - URL patterns for user-specific views - The `UserToken` proxy model Similarly, all templates for user-specific views shall be moved from `templates/users/account/` to `templates/account/`. ### Justification Following on from #12590, it has become apparent that a separate app should be used to contain resources used exclusively for user account management. This will allow us to better organize user-specific views and their related resources from the conventional models under the `users` app. It will also better enable us to employ the `UserToken` proxy model for users to manage their own API tokens.
adam added the status: acceptedtype: housekeeping labels 2025-12-29 20:36:06 +01:00
adam closed this issue 2025-12-29 20:36:06 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#8386