Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8842095
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T10:52:48+00:00 2026-06-14T10:52:48+00:00

If you delete a user from Django, then all related CMS-pages will be removed

  • 0

If you delete a user from Django, then all related CMS-pages will be removed as well. E.g. when someone leaves the company, I don’t want his credentials available in the system, so deleting a user is the best option (only disabling the account is a bit of hassle if you have many users).
The pages being deleted as well when removing a user, is an undesired feature. Is there a (simple) way to work around this

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T10:52:49+00:00Added an answer on June 14, 2026 at 10:52 am

    Why is disabling the account such a hassle, even with many users? You still have to find the user’s page in the admin to delete them, just like disabling.

    1) You could also remove their privileges and/or revoke their admin access. All of these features are designed to do exactly what you want.

    2) You could write a custom delete function that iterates over all pages connected to the CMS-user in question and sets their relation to said user to NULL, then deletes the User.

    3) You could turn off foreign key checks at the database level.

    4) And lastly, you could simply NOT delete the user. Deleting data is a bad idea — that’s why things like active flags exist. One day you might want to look back on that deleted user was up to and you’ll kick yourself if all of his records are simply gone.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

By default, I can see Delete the selected user action from django user admin
I am trying to delete an old user from our perforce installation. A previous
my app crashes when the user tries to delete a row from the UITableView
I am trying to delete rows from datagridview, when the user selects any row
I am a Windows user, and I delete temp internet files from IE by
My goal is to delete a user from the user list in my application.But
I am attempting to delete a record from the Django admin interface. I click
This is a follow-up question on Delete field from standard Django model . In
Django's auth messages look pretty handy for notifying a CMS user of some configuration
How does one 'properly' delete a user from the system in ASP.NET MVC? I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.