Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion loads/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1227,7 +1227,9 @@ def module_staff_allocation(request, module_id, package_id):
# Fix the fields
allocation.module = module
allocation.package = package
logger.info("[%s] allocation for %s processed", request.user, allocation.staff)
# Sometimes we get here with no allocated staff, I don't know why!
if allocation.staff:
logger.info("[%s] allocation for %s processed", request.user, allocation.staff)
# Now do a real save
formset.save(commit=True)
logger.info("[%s] adjusted the module allocation for module %s" % (request.user, module),
Expand Down
Loading