django-helpdeskmig/helpdesk/views
Georg Lehner 25c36a6f5c Restrict ticket selection for dependencies and parents
When adding a dependent or parent ticket, the choice field in the
ticket selection form excludes:

- All existing dependencies of the current ticket.
- All existing parent tickets of the current ticket.
- The current ticket itself.

The first two prevent immediate circular references: A dependency
cannot be a parent and vice versa.  Deeper circular references are
not covered by this: a ticket can still be its own grandchild.

They also prevent current behavior of throwing an `IntegrityException`
when selecting a dependency or parent.

The third one prevents also a quirky behavior: until now, specifying the
ticket itself as parent or dependency just does not save the
dependency and does not issue a warning either.
2024-06-08 12:11:01 +02:00
..
__init__.py Moved all project files under a "helpdesk" directory. Should make it easier to use setup.py / pypi / whatever in the future. 2011-01-25 23:02:00 +00:00
abstract_views.py pycodestyle formatting 2022-07-12 12:34:19 +02:00
api.py Deprecate VALID_EXTENSIONS properly 2024-04-22 18:38:59 +02:00
feeds.py Fixed pairing parenthesis 2024-02-01 16:28:26 +01:00
kb.py Initial isort configuration 2022-07-22 03:26:41 +02:00
login.py chore(pep8): Fix bad imports, unused variables, pep8 warnings and some possible bugs 2021-03-05 09:37:21 +01:00
permissions.py Initial isort configuration 2022-07-22 03:26:41 +02:00
public.py Fix mistake in if chaining 2023-12-03 00:34:29 +00:00
staff.py Restrict ticket selection for dependencies and parents 2024-06-08 12:11:01 +02:00