Skip to content

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

Description

@SamakshAgarwal1112

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions