-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: make ticket and timesheet audit fields read only
This paves way for approval/resolve actions. Permissions for those actions have been added.
- Loading branch information
1 parent
60a87eb
commit 7afb8ad
Showing
5 changed files
with
74 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
fahari/ops/migrations/0013_alter_weeklyprogramupdate_attendees.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Generated by Django 3.2.6 on 2021-08-11 17:54 | ||
|
||
import django.contrib.postgres.fields | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('ops', '0012_auto_20210728_2115'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='weeklyprogramupdate', | ||
name='attendees', | ||
field=django.contrib.postgres.fields.ArrayField(base_field=models.TextField(), help_text='Use commas to separate attendees names', size=None), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Generated by Django 3.2.6 on 2021-08-11 18:04 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('ops', '0013_alter_weeklyprogramupdate_attendees'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterModelOptions( | ||
name='facilitysystemticket', | ||
options={'ordering': ('facility_system__facility__name', 'facility_system__system__name', '-raised', '-resolved'), 'permissions': [('can_resolve_ticket', 'Can Resolve Ticket')]}, | ||
), | ||
migrations.AlterModelOptions( | ||
name='timesheet', | ||
options={'ordering': ('-date', '-approved_at', 'staff__name'), 'permissions': [('can_approve_timesheet', 'Can Approve Timesheet')]}, | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Generated by Django 3.2.6 on 2021-08-11 17:54 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('users', '0008_user_phone'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='user', | ||
name='email', | ||
field=models.EmailField(blank=True, max_length=254, verbose_name='email address'), | ||
), | ||
] |