correction des messages d'information

This commit is contained in:
Jean-Marie Favreau 2024-01-03 11:35:29 +01:00
parent a6f9b55c68
commit dddee846b1

View File

@ -293,9 +293,9 @@ def import_from_url(request):
return HttpResponseRedirect(event.get_absolute_url())
else:
if len(drafts) > 0:
messages.info(request, _("This URL has already been submitted, but has not been selected for publication by the moderation team."))
elif len(trash) > 0:
messages.info(request, _("This URL has already been submitted and is awaiting moderation."))
elif len(trash) > 0:
messages.info(request, _("This URL has already been submitted, but has not been selected for publication by the moderation team."))
return render(request, 'agenda_culturel/import.html', context={'form': form, 'form_event': form_event})