Django: The best practice to implement CRUD outside the contrib.admin

Adrian Liem picture Adrian Liem · Jun 24, 2009 · Viewed 8k times · Source

I'm currently developing a Blog project using Post model, which will be used by multiple authors.

I want to make an admin/control-panel interface where each author of the Post can view the Post list the author created (so he won't see the Post created by the other authors), edit, and multiple-delete them.

Valid use case for django admin? said that:

the Django admin is not suited for individual user profiles, each user would be able to see, and edit, all other user profiles. This is suited more to an administrator who has to manage all the users at once.

That means a new CRUD system should be created -- outside the contrib.admin interface. So the question is, is there any existing technique/way to implement the CRUD outside the contrib.admin system? or, what do I need to study/use? how can I implement it nicely (the minimum effort)?

Thanks in advance :)

Answer

Harper Shelby picture Harper Shelby · Jun 24, 2009

You'll want to look at the Django generic create/update forms. It's not the admin, but it's fairly easy to implement.