def forward_messages(request, success_messages, warnings):
    for message in success_messages:
        messages.success(request, message)
    for category in warnings:
        for warning in warnings[category]:
            messages.warning(request, warning)
def forward_messages(request, success_messages, warnings):
    for message in success_messages:
        messages.success(request, message)
    for category in warnings:
        for warning in warnings[category]:
            messages.warning(request, warning)