create custom methods in django class base views
<p>I want to use generic class base views using django 1.9
What i am trying to understand that</p>

<pre><code>from django.views.generic import CreateView
from braces.views import LoginRequiredMixin
from .models import Invoice

class InvoiceCreateView(LoginRequiredMixin,CreateView):
    model = Invoice

    def generate_invoice(self):
        ...
        return invoice
</code></pre>

<p>now i want to bind this custom method to url. How can i achive this?
I know using function base view its simple but i want to do this using class base views.</p>

<p>Help will be appreciated.</p>