Commit Graph

307 Commits

Author SHA1 Message Date
7b4d53cfc0 Fix 'list' annoation for py3.8 2022-07-25 03:44:04 +02:00
749ebbe16b Fix annotations for py3.8 2022-07-25 03:42:16 +02:00
595dae1cf7 Add get_template_staff_and_template_cc function
Furhter reduxes complexity by combining creation of templates
2022-07-25 03:38:16 +02:00
256af24daa Comment function 2022-07-25 03:34:03 +02:00
a2f33c9799 Add add_staff_subscription helper
Further reduces complexity by checking for subscription in helper
function
2022-07-25 03:32:45 +02:00
f678c63496 Add update_messages_sent_to_by_public_and_status helper function
Handles updating ticket and sending ticket reply
2022-07-25 03:30:07 +02:00
fe619b5ff2 Combine conditionals to single line 2022-07-25 03:22:59 +02:00
f815ebbb5c Add get_time_spent_from_request helper
Extracts further code
2022-07-25 03:17:10 +02:00
9294eca5d6 Add get_and_set_ticket_status helper
Extracts some futher code from `update_ticket`
2022-07-25 03:11:30 +02:00
ecefd5e407 Extract the due_date to helper function 2022-07-25 03:01:50 +02:00
574395ee28 Easy pickings
Simple code violations of reserved symbols etc.
2022-07-25 02:46:33 +02:00
44f068d1b8 re-apply formatting 2022-07-22 03:30:35 +02:00
25542f929e Initial isort configuration
Will fail build if imports are not sorted correctly
2022-07-22 03:26:41 +02:00
aa876f8016 pycodestyle formatting 2022-07-12 12:34:19 +02:00
b8511dd70b Fix conflicts for Django 4 support 2022-04-23 02:23:51 -04:00
5792587e3e feat(ticket): disable timeline 2022-04-15 18:48:21 +02:00
7a3260a163 fix(kb): no db 2022-03-18 19:33:31 +01:00
347a70e497 fix(kb): no db 2022-03-18 19:21:17 +01:00
358080926c Added Django 4 support. 2022-03-16 22:29:09 -04:00
fbadf23654 Fix typo in model field name in update_ticket.
email_on_ticket_assigned > email_on_ticket_assign
2022-03-11 11:03:16 +01:00
3695cfa19d Remove comma in staff.py to address #988 2022-01-04 11:47:31 -05:00
aff67184d4 Add attachment validator when uploading attachment to tickets 2021-10-05 06:25:42 -04:00
a5f801bb52 use csrf tokens in all forms 2021-10-04 23:13:38 -04:00
63bb949d63 Don't use redis cache at all for ticket querysets as this breaks pagination 2021-07-07 20:40:34 +02:00
f840136e1e Don't crash if use email is None 2021-07-07 20:38:20 +02:00
c90811418a chore(pep8): Fix bad imports, unused variables, pep8 warnings and some possible bugs 2021-03-05 09:37:21 +01:00
90961897ec CustomField datetime type formats updated to fixed string formats enabling reformatting and consistency 2021-02-10 17:58:01 -07:00
ae9109bad6 Bug Fix EditTicketForm unable to edit and add error display 2021-02-09 13:08:27 -07:00
bbe
2a03a5ecf7 Disabled merged_to field in edit ticket + reformat template (fix datepicker) and simplify view 2021-02-04 18:17:06 +01:00
c9fa0c81c7 Merge pull request #895 from Benbb96/merging-tickets-feature
New feature:  Merging tickets
2020-11-01 13:54:03 -05:00
bbe
1788f2fb84 Update ticketCC views and also reformat HTML files along with some improvements in form errors. 2020-10-31 18:33:41 +01:00
bbe
ad55d54f2d Update french translations 2020-10-31 00:15:51 +01:00
bbe
b3bd23dbff Add assigned_to attribute to be merged 2020-10-30 23:12:09 +01:00
bbe
41b5715b7d Add comments and refactor variables names 2020-10-30 22:19:21 +01:00
bbe
e1cd9d0f2e Implement ticket merge feature in ticket list. Create intermediate page to choose which data and custom field values to keep on the main ticket.
Also add new template tag filter to use the dictionary get function in template.
2020-10-29 23:32:02 +01:00
bbe
dc503b0437 Fix #739 2020-10-23 14:51:53 +02:00
58a23fed13 Check user is authenticated and usersettings_helpdesk model is created before attempting to read a tickets_per_page, otherwise use default value 2020-10-13 13:01:18 -06:00
df4024dbb3 Merge branch 'master' into master 2020-10-13 03:38:36 -04:00
c9e0a51d78 Merge pull request #881 from Benbb96/fix-errors-on-master
Fix errors on 0.3.x branch especially relating to django 3.x
2020-10-13 03:35:42 -04:00
e50225a67c remove missing import and usage of apply_query 2020-10-12 15:57:00 -06:00
6b335590e6 Merge bugfixes from 0.2.23-devel 2020-10-12 03:19:46 -04:00
d7f4ca4137 Fix the call the user setting for tickets per page 2020-10-08 22:34:40 +02:00
d80c70735a Remove unused imports and fix errors like variables which were removed or renamed or call to function apply_query which doesn't exist anymore. 2020-10-08 22:07:49 +02:00
720860fe54 Merge pull request #869 from alligatorbait/0.2.x
Verify ticket.assigned_to is set before attempting to access id property
2020-10-08 01:26:10 -04:00
ecc7dcdc17 Fix tests 2020-10-08 00:48:03 +02:00
bbe
bcec57dafe Display total row in report output. 2020-10-05 11:15:22 +02:00
b772c6097b Verify ticket.assigned_to is set before attempting to access id property 2020-08-25 16:11:50 -06:00
ba321462c3 Attempted fix for #849
Probably fixes #849
2020-08-07 13:03:16 +02:00
2f788f2597 Merge 0.2.22 bugfix release updates, update copyright year in license, specify python 3.6 or above in setup 2020-07-30 04:46:15 -04:00
bbe
ff77aa0fe3 A ticket cannot depends on itself or on a ticket already depending on it 2020-06-12 15:34:39 +02:00