Skip to content

Commit

Permalink
fixup: migration lol
Browse files Browse the repository at this point in the history
  • Loading branch information
rgraber committed Dec 19, 2024
1 parent 4bedd9a commit 19aacdc
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 0 deletions.
65 changes: 65 additions & 0 deletions kobo/apps/audit_log/migrations/0014_add_submission_action.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# Generated by Django 4.2.15 on 2024-12-19 19:37

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('audit_log', '0013_alter_auditlog_action'),
]

operations = [
migrations.AlterField(
model_name='auditlog',
name='action',
field=models.CharField(
choices=[
('add-media', 'Add Media'),
('add-submission', 'Add Submission'),
('allow-anonymous-submissions', 'Allow Anonymous Submissions'),
('archive', 'Archive'),
('auth', 'Auth'),
('clone-permissions', 'Clone Permissions'),
('connect-project', 'Connect Project'),
('create', 'Create'),
('delete', 'Delete'),
('delete-media', 'Delete Media'),
('delete-service', 'Delete Service'),
('deploy', 'Deploy'),
('disable-sharing', 'Disable Sharing'),
(
'disallow-anonymous-submissions',
'Disallow Anonymous Submissions',
),
('disconnect-project', 'Disconnect Project'),
('enable-sharing', 'Enable Sharing'),
('export', 'Export'),
('in-trash', 'In Trash'),
('modify-imported-fields', 'Modify Imported Fields'),
('modify-service', 'Modify Service'),
('modify-sharing', 'Modify Sharing'),
('modify-user-permissions', 'Modify User Permissions'),
('put-back', 'Put Back'),
('redeploy', 'Redeploy'),
('register-service', 'Register Service'),
('remove', 'Remove'),
('replace-form', 'Replace Form'),
('share-form-publicly', 'Share Form Publicly'),
('share-data-publicly', 'Share Data Publicly'),
('unarchive', 'Unarchive'),
('unshare-form-publicly', 'Unshare Form Publicly'),
('unshare-data-publicly', 'Unshare Data Publicly'),
('update', 'Update'),
('update-content', 'Update Content'),
('update-name', 'Update Name'),
('update-settings', 'Update Settings'),
('update-qa', 'Update Qa'),
('transfer', 'Transfer'),
],
db_index=True,
default='delete',
max_length=30,
),
),
]
2 changes: 2 additions & 0 deletions kobo/apps/audit_log/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,7 @@ class AllProjectHistoryLogViewSet(AuditLogViewSet):
available actions:
> add-media
> add-submission
> allow-anonymous-submissions
> archive
> clone-permissions
Expand Down Expand Up @@ -672,6 +673,7 @@ class ProjectHistoryLogViewSet(
available actions:
> add-media
> add-submission
> allow-anonymous-submissions
> archive
> clone-permissions
Expand Down

0 comments on commit 19aacdc

Please sign in to comment.