You can use `success_message = ugettext_lazy('New election was successfully created.')` as class attribute.