Allows members to request assignments for jobs they have done, that were not announced.
Project description
juntagrico_assignment_request
This is an extension for juntagrico. You can find more information about juntagrico here (https://github.com/juntagrico/juntagrico)
It allows members to request assignments for jobs they have done, that were not announced.
Installation
- Add
juntagrico-assignment-request
to yourrequirements.txt
- Add
'juntagrico_assignment_request',
to theINSTALLED_APPS
in yoursettings.py
abovejuntagrico
- Add
path(r'', include('juntagrico_assignment_request.urls')),
at the end of yoururls.py
- Redeploy your project (and apply migrations)
Configuration
When requesting an assignment, members can select the person (confirmer) that can confirm that they did a job.
To add people to this selection you will have to add this permission to that user: juntagrico_assignment_request | Arbeitseinsatz Anfrage | Kann selbständige Arbeitseinsätze bestätigen
If you want to allow an activity area coordinator to confirm requests, but only on the areas they coordinate,
add this permission to that user: juntagrico_assignment_request | Arbeitseinsatz Anfrage | Kann selbständige Arbeitseinsätze im eigenen Tätigkeitsbereich bestätigen
Only the selected confirmer, will be informed about the request by email and can see the request.
If members don't select any confirmer all users with the following permission will receive a notification and can see the request: juntagrico_assignment_request | Arbeitseinsatz Anfrage | Wird über nicht abgesprochene Arbeitseinsätze informiert
The ASSIGNMENT_UNIT setting is respected.
ASSIGNMENT_REQUEST_AREAS
If you need to limit the activity areas that can be selected in the requests,
set this setting to a function, that takes an ActivityArea
queryset as the first argument
and returns a filtered queryset.
By default, all activity areas can be selected.
Example: Include only visible activity areas:
def only_visible(queryset):
return queryset.filter(hidden=False)
ASSIGNMENT_REQUEST_AREAS = only_visible
Usage
- Members will see a new entry in the menu to request assignments
- They are presented with a form to fill out the details of the job they did
- Below the form, they see a list of assignments that they already sent with the option to edit or delete them
- Upon sending the form, the selected confirmer (or the fallback users) will be informed by email
- The confirmer can modify the assignment amount, accept, deny or just send a message to the member
- For convenience, there is a one click option to confirm the assignment in the email
- Once accepted, the member is informed, and an assignment is created
Admin modifications
The extension creates job types and jobs on the fly behind the scenes as they are needed to create the assignments and show them to the member that made them. In order to not clutter the admin views with automatically generated content, these jobs and job types are hidden. As a side effect there will be assignments that have a valid job link, but when you follow that job, you will be told that no job with the given id exists.
Screenshots
New menu entry
Request Form
Overview about reported assignments
Form to accept/deny the request
Confirmation by mail for the requester
The assignment appears in the list
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for juntagrico_assignment_request-1.6.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65a50e3a273407c698e9e8ccbaead9643edc4a37f457edaed1d7a71b88b58c0d |
|
MD5 | c744e29ec74627e7a232ec3cb25da07d |
|
BLAKE2b-256 | 10862284b5b824d6aadd517cf8c56eb3910a5075da1ce0718227bfa0f5dc686b |
Hashes for juntagrico_assignment_request-1.6.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 226d65495cfbbd195c7914b73e9b08fca5068fcdaa002090d784b2199970b711 |
|
MD5 | dbfa280ce1132ae2c03a70ec7ea949d9 |
|
BLAKE2b-256 | 410c7b68f853ba61fe3c2ca6ccf3ba78c7d87a1d019f18a8a48437d6ddbf8d17 |