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

[FEATURE] Add a feature for admin approval for blogs. #172

Open
SamakshAgarwal1112 opened this issue Jul 15, 2024 · 2 comments
Open

[FEATURE] Add a feature for admin approval for blogs. #172

SamakshAgarwal1112 opened this issue Jul 15, 2024 · 2 comments
Assignees
Labels
BSoC'24 Issues available during BSoC 2024 difficulty - medium enhancement New feature or request

Comments

@SamakshAgarwal1112
Copy link
Collaborator

Is your feature request related to a problem? Please describe.

The blogs that are uploaded in the website could be at risk of being polluted with content not fit for public. So for that reason, we want the blogs to be approved by the admin before being displayed for public at /blogs page.

Describe the solution you'd like!

The solution is to introduce a feature to approve blogs by the admin before being available for general audience. The solution may include:

  • Introducing a new Boolean field in blogs model 'approved' with default as False.
  • Only allowing users to see blogs that are approved by admin.
  • At /adminportal, make a table "Blogs to be approved" under dashboard for admin consisting to blogs awaiting approval.
  • Add two buttons in the table, "Approve" and "Discard". "Approve" will change the value of approved field in blogs model to True and "Discard" will delete that blog.
  • Make sure the table you make is responsive.

Describe alternatives you've considered

Feel free to suggest!

Developer Help

None.

@SamakshAgarwal1112 SamakshAgarwal1112 added enhancement New feature or request difficulty - medium BSoC'24 Issues available during BSoC 2024 labels Jul 15, 2024
@rohansen856
Copy link

@SamakshAgarwal1112 i would like to work on this issue. I would modify the blog model in applications/blog/models.py and add the necessary field. also i would make a responsive table UI in /adminportal where the blogs can be approved or discarded by the admin only.

@SamakshAgarwal1112
Copy link
Collaborator Author

@rohansen856 Go ahead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BSoC'24 Issues available during BSoC 2024 difficulty - medium enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants