Skip to main content

juntagrico_assignment_request

juntagrico-ci Maintainability Code Coverage image image image image image image image

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

  1. Add juntagrico-assignment-request to your requirements.txt
  2. Add 'juntagrico_assignment_request', to the INSTALLED_APPS in your settings.py above juntagrico
  3. Add path(r'', include('juntagrico_assignment_request.urls')), at the end of your urls.py
  4. 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

ASSIGNMENT_REQUEST_GRACE_PERIOD

Limits how far in the past members can request assignments. Requests in the future are never allowed.

  • None (default): Assignments can be requested for any date in the past.
  • A number of days: Assignments can be requested for dates in the current business year and for dates up to this number of days before today, even if they are in the last business year. With 0 only dates in the current business year are allowed.

Existing requests can keep their date, even if it is not allowed anymore.

Example: Allow requests for the last business year during the first two weeks of the new business year:

ASSIGNMENT_REQUEST_GRACE_PERIOD = 14

ASSIGNMENT_REQUEST_MAX_PENDING

Maximum number of pending (not yet answered) requests per member. Each new request sends an email to the approvers, so this limits the number of emails a member can trigger. If the limit is reached, the request form is replaced by a message. Set it to None to disable the limit. Default: 50

ASSIGNMENT_REQUEST_MAX_PENDING = 50

ASSIGNMENT_REQUEST_MAX_PER_DAY

Maximum number of requests per member and day. New requests and edited requests that need another approval (higher amount) count, using the date of the request. The approvers are notified at most once per day about the same request. Set it to None to disable the limit. Default: 20

ASSIGNMENT_REQUEST_MAX_PER_DAY = 20

Template Blocks

See docs on how to set up template overrides

template/assignments_request/request.html|instructions

Change the instructions at the top of the request form

Usage

  1. Members will see a new entry in the menu to request assignments
  2. They are presented with a form to fill out the details of the job they did
  3. Below the form, they see a list of assignments that they already sent with the option to edit or delete them, as long as they are not confirmed
  4. Upon sending the form, the selected confirmer (or the fallback users) will be informed by email
  5. 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
  6. 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

New menu entry

Request Form

Request Form

Overview about reported assignments

Overview

Form to accept/deny the request

Accept/Deny Form

Confirmation by mail for the requester

Mail Confirmation

The assignment appears in the list

New menu entry

Metadata

Release files for juntagrico-assignment-request 2.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for juntagrico-assignment-request 2.0.1
File Size Uploaded Provenance Actions
juntagrico_assignment_request-2.0.1.tar.gz 35.5 kB With provenance Details for juntagrico_assignment_request-2.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for juntagrico-assignment-request 2.0.1
File Interpreter ABI Platform Actions
juntagrico_assignment_request-2.0.1-py3-none-any.whl Python 3 none any Details for juntagrico_assignment_request-2.0.1-py3-none-any.whl

Total release size: 87.0 kB

Release files / juntagrico_assignment_request-2.0.1.tar.gz

Download URL juntagrico_assignment_request-2.0.1.tar.gz
Size 35.5 kB
Tags Source
SHA-256 checksum
How to use checksums
943bf3077746cf48a9e10421ccc63a0d9229bb75de7b8e2a737d56633568792b
BLAKE2b-256 checksum
How to use checksums
9515e0f49d6047e61e184a77232e73341be01f62d126c50f762fea62f964866c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 25, 2026.

Transparency log

Release files / juntagrico_assignment_request-2.0.1-py3-none-any.whl

Download URL juntagrico_assignment_request-2.0.1-py3-none-any.whl
Size 51.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2f1a6d03521d1338693719c83cdf58742ac8cb171246744825ee22d54d2b7aaa
BLAKE2b-256 checksum
How to use checksums
52d8f013a49d39904e6f972b0638334f99780c817f13ee3707f03f98ee84919e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 25, 2026.

Transparency log

Security for juntagrico-assignment-request 2.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for juntagrico_assignment_request-2.0.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 25, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page