neighbourhood/models.py
def search_by_name(cls, search_term):
        """Method for getting business profile through search functionality"""

        business = cls.objects.filter(bs_name__icontains =search_term)
        return business
Method for getting business profile through search functionality
Method for getting business profile through search functionality
Method for getting business profile through search functionality
def search_by_name(cls, search_term):
        business = cls.objects.filter(bs_name__icontains =search_term)
        return business
def search_by_name ( cls , search_term ) : business = cls . objects . filter ( bs_name__icontains = search_term ) return business
Method for getting business profile through search functionality
Method for getting business profile through search functionality
"""Method for getting business profile through search functionality"""
cls
search_term