Skip to content

Commit

Permalink
Merge branch 'release/0.1.8' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
erikvw committed Aug 16, 2024
2 parents cee44c1 + 71749e0 commit 5287c71
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
1 change: 0 additions & 1 deletion edc_qareports/admin/qa_report_log_summary_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ class QaReportLogSummaryAdmin(
admin.ModelAdmin,
):
ordering = ["-last_accessed"]
user_may_view_other_sites = True

list_display = (
"username",
Expand Down
24 changes: 24 additions & 0 deletions edc_qareports/migrations/0017_auto_20240816_0256.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Generated by Django 5.1 on 2024-08-15 23:56

from django.db import migrations
from django.db.migrations import RunPython
from edc_constants.constants import FEEDBACK, PENDING


def update_status(apps, schema_editor):
for model_cls in apps.get_models():
if getattr(model_cls, "status", None):
print(
f"Updated `{model_cls._meta.label_lower}.status` from `{FEEDBACK}` "
f"to `{PENDING}`."
)
model_cls.objects.filter(status=FEEDBACK).update(status=PENDING)


class Migration(migrations.Migration):

dependencies = [
("edc_qareports", "0016_alter_note_options_alter_qareportlog_options"),
]

operations = [RunPython(update_status)]
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class QaReportModelAdminMixin:

qa_report_log_enabled = True
qa_report_list_display_insert_pos = 3

list_per_page = 25
note_model = "edc_qareports.note"
note_status_list_filter = NoteStatusListFilter
note_template = "edc_qareports/columns/notes_column.html"
Expand Down

0 comments on commit 5287c71

Please sign in to comment.