EgbieAndersonUku1 / Fullstack-fruit-and-veg

Fullstack Fruit & Veg Shop: A web application developed with HTML, CSS, and JavaScript for the frontend, and Django for the backend. Features include user authentication, a product catalogue, shopping cart functionality, and order management. and much more
https://fullstack-fruit-and-veg.vercel.app
0 stars 0 forks source link

Authentication#usermodels update #19

Closed EgbieAndersonUku1 closed 2 months ago

EgbieAndersonUku1 commented 2 months ago

Add Proxy Models for User Types and Test for Database Tables

Added Test for Custom Models

Custom Model Types

The following proxy models extend the existing User model without altering the database schema. They provide a structured way to manage different user types with custom logic and do not create new database tables; they simply reference the existing schema.

How to Use in the Admin Interface

  1. Superusers Admin Interface:

    • Navigate to the Django admin site.
    • Under the "Users" section, find "Superusers" to display only users with superuser privileges.
  2. Admin Users Admin Interface:

    • Under the "Users" section, find "Admin Users" to display only users with admin status.
  3. Staff Users Admin Interface:

    • Under the "Users" section, find "Staff Users" to display only users with staff status.
  4. Verified Users Admin Interface:

    • Under the "Users" section, find "Verified Users" to display only users who have verified their email.
  5. Banned Users Admin Interface:

    • Under the "Users" section, find "Banned Users" to display only users who have been banned.
  6. Active Users Admin Interface:

    • Under the "Users" section, find "Active Users" to display only users who are currently active.
  7. Non-Active Users Admin Interface:

    • Under the "Users" section, find "Non-Active Users" to display only users who are no longer active.

These goal is to enhance user management by providing more granular control in the admin interface, allowing for easier navigation and filtering by user type.

vercel[bot] commented 2 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment | Name | Status | Preview | Comments | Updated (UTC) | | :--- | :----- | :------ | :------- | :------ | | **fullstack-fruit-and-veg** | ⬜️ Ignored ([Inspect](https://vercel.com/egbies-projects/fullstack-fruit-and-veg/HurwexQoy9DxMydF1EZK5NK57G1B)) | | | Aug 30, 2024 5:00pm |