class Base:

    def __init__(self, auth_user):
        self.user = auth_user

def redirect_to(self):
    return ''


class Vendor(Base):

    def redirect_to(self):
        return '/login/vendor'


class Customer(Base):

    def redirect_to(self):
        return '/login/customer'
Django authentication with modelform