Views
MergeUsersView
¶
Bases: FormView
DeleteAllForumUserMessagesView
¶
Bases: FormView
Delete all forum messages from an user.
Messages are soft deleted and are still visible from admins GUI frontend to the dedicated command.
OperationLogListView
¶
BanView
¶
Bases: PermissionRequiredMixin
, ListView
UserBan management view.
Displays :
- the list of active bans with their main information, with a link to BanDeleteView for each one
- a link which redirects to BanCreateView
merge_users(u1, u2)
¶
Merge u2 into u1.
This means that u1 shall receive everything that belonged to u2 :
- pictures
- refills of the sith account
- purchases of any item bought on the eboutic or the counters
- subscriptions
- godfathers
- godchildren
If u1 had no account id, he shall receive the one of u2. If u1 and u2 were both in the middle of a subscription, the remaining durations stack If u1 had no profile picture, he shall receive the one of u2
Source code in rootplace/views.py
delete_all_forum_user_messages(user, moderator, *, verbose=False)
¶
Soft delete all messages of a user.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
user
|
User
|
core.models.User the user to delete messages from |
required |
moderator
|
User
|
core.models.User the one marked as the moderator. |
required |
verbose
|
bool
|
bool if True, print the deleted messages |
False
|