polish: fix stale attendance_log comment + idiomatic WorkLog.objects.all() (SiteReport removal cleanup)
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
7f5e4c9c50
commit
120f21d645
@ -169,8 +169,9 @@
|
||||
{# Two submit buttons share the same form. The `name=value` pair #}
|
||||
{# of whichever button the user clicks ends up in request.POST so #}
|
||||
{# the view can branch on `next_action`. Default ('log_only' or #}
|
||||
{# missing) keeps the existing Site Report flow. 'log_absences' #}
|
||||
{# redirects to /absences/log/ pre-filled with this date/team/project. #}
|
||||
{# missing) returns to the dashboard with the success toast. #}
|
||||
{# 'log_absences' redirects to /absences/log/ pre-filled with this #}
|
||||
{# date/team/project. #}
|
||||
<div class="d-grid gap-2 mt-5">
|
||||
<button type="submit" name="next_action" value="log_only" class="btn btn-lg btn-accent">
|
||||
<i class="fas fa-save me-2"></i>Log Work
|
||||
|
||||
@ -804,7 +804,7 @@ def work_history(request):
|
||||
|
||||
# Start with base queryset
|
||||
if is_admin(user):
|
||||
logs = WorkLog.objects
|
||||
logs = WorkLog.objects.all()
|
||||
else:
|
||||
# Supervisors only see logs for their projects
|
||||
logs = WorkLog.objects.filter(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user