Giter VIP home page Giter VIP logo

digital-citizen-charter-api's Introduction

Digital Citizen Charter (DCC)

Digital Citizen Charter ( डिजिटल नागरिक वडापत्र ) for Municipalities and government offices.

Introduction

Digital Citizen Charter (DCC) is a digital version of the Citizen Charter. It is a public declaration of the commitments of the Municipalities and government offices to provide services to the citizens in a time-bound manner. It is a tool for public accountability and transparency in the administration. It is a platform for the citizens to know the services provided by the Municipalities and government offices, the time taken to provide the services, the procedure to avail the services, the fees to be paid for the services, the documents required to avail the services, the officer responsible for providing the services, the time taken to redress the grievances, etc.

Objective

Installation

python3 -m venv .venv

source .venv/bin/activate

pip install -r requirements.txt

Migration

python manage.py makemigrations

python manage.py migrate

Usage

python manage.py runserver

Formatter Used

https://marketplace.visualstudio.com/items?itemName=charliermarsh.ruff

digital-citizen-charter-api's People

Contributors

publishername avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

digital-citizen-charter-api's Issues

User accounts not deleted when associated organization is deleted

Body:

Description

When an Organization is deleted, the associated User accounts are not being deleted. This can lead to orphaned User accounts in the system that are associated with a non-existent Organization.

Expected Behavior

When an Organization is deleted, all associated User accounts should also be deleted.

Steps to Reproduce

  1. Create an Organization.
  2. Create a User associated with the Organization.
  3. Delete the Organization.
  4. The User account still exists in the system.

Validate website Field with URLField to Ensure Valid URLs In Organization Model

Description

In our current implementation of the models field of our model is defined as a CharField. This approach does not enforce the entry of valid URLs, potentially leading to data integrity issues if invalid URLs are stored. To enhance the robustness of our data validation and ensure that only valid URLs are stored in the website field, it is proposed to change the field type from CharField to URLField.

Proposed Changes

  • Change the website field in the model from CharField to URLField.

Allow Submission of Employee Details Without Email & Add Default Profile Pictures

Issue

Some employee emails are not available, making it difficult to submit their details through the system.

ToDo

  • Submission Without Email: Modify the employee details submission form to allow submission even if the employee's email is not available.

  • Default Profile Pictures: Implement a feature to set default profile pictures for employees who do not upload their own profile pictures.

  • Add Description Field: Include a description field in the employee profile to provide additional information, particularly useful for identifying the ward chairpersons and determining their respective wards.

Implement Cloning of Organization Departments and Designations & Enhance Designation Priority User Experience

Issues

  • In organizations with identical department structures and designations, manually recreating them for each organization can be time-consuming and error-prone.

  • Additionally, setting designation priorities can be confusing when no previous priorities are displayed.

Proposal

Cloning Departments and Designations:

  • Introduce a feature to clone departments and designations from an existing organization to a new one.
  • Provide an option in the administrative interface to select the organization from which to clone.

Enhanced Designation Priority UX:

  • Improve the user experience for setting designation priorities by providing clearer guidance and context.
  • When setting priorities, display existing priorities from similar organizations or defaults.
  • Offer the option to auto-populate priorities based on predefined criteria or algorithms.

ToDo

  • Implement Cloning Organization's Department and Designations
  • Enhance Designation Priority User Experience

Refactor admin.py for Employee and Organization and move form elements to forms.py

Title: Refactor admin.py for Employee and Organization and move form elements to forms.py

Description:

As part of our ongoing codebase cleanup and organization, we need to refactor the admin.py files for both the Employee and Organization models. The goal is to make the code more maintainable and easier to understand.

Tasks:

  • Refactor admin.py for Employee: The EmployeeAdmin class in admin.py needs to be refactored. Any complex logic should be moved to model methods or utility functions.
  • Refactor admin.py for Organization: Similar to Employee, the OrganizationAdmin class in admin.py also needs to be refactored.
  • Move form elements to forms.py: Currently, some form elements and their logic are defined in admin.py. These should be moved to forms.py to separate the form presentation from the admin interface.

Allow Profile Pictures and Logos to be Uploaded via URL

Issue:

Currently, profile pictures and logos can only be uploaded from local storage, which may limit users who prefer to use images hosted externally. This restricts flexibility and convenience in managing visual assets.

Proposal:

Introduce a feature to allow users to provide a URL for profile pictures and logos, enabling them to reference images hosted externally. This enhancement would offer users more flexibility in sourcing and managing visual assets for profiles and organizational branding.

ToDo

  • Profile Picture on Employee
  • Logo of Organization

Implement Multi-User Assignment Option for Designations

Issue:

In organizations, certain designations may be intended for exclusive assignment to a single user, while others may be applicable to multiple users. However, the current system does not provide a way to differentiate between these scenarios, leading to potential confusion and mismanagement of designations.

Proposal

Introduce a new field in the designation settings to specify whether the designation can be assigned to multiple users within the organization. This enhancement will allow administrators to define the assignment behavior for each designation, ensuring clarity and consistency in role allocation.

ToDo

  • Add a new field, such as "Allow Multiple Users," to the designation configuration interface.
  • Modify the user assignment process to enforce the specified behavior based on the designation setting.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.