class AuthorCreate(SuccessMessageMixin, CreateView):
    model = Author
success_url = '/success/'
success_message = '%(name)s was created successfully'
how to send success message if we use django generic views