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 с формой модели