neighbourhood/models.py
def update_neighbourhood(cls, neighbourhood_id, new_neighbourhood):
        """Method for updating a new Neighbourhood"""

        ghetto = cls.objects.filter(id = neighbourhood_id).update(name = new_neighbourhood)
        return ghetto
Method for updating a new Neighbourhood
Method for updating a new Neighbourhood
Method for updating a new Neighbourhood
def update_neighbourhood(cls, neighbourhood_id, new_neighbourhood):
        ghetto = cls.objects.filter(id = neighbourhood_id).update(name = new_neighbourhood)
        return ghetto
def update_neighbourhood ( cls , neighbourhood_id , new_neighbourhood ) : ghetto = cls . objects . filter ( id = neighbourhood_id ) . update ( name = new_neighbourhood ) return ghetto
Method for updating a new Neighbourhood
Method for updating a new Neighbourhood
"""Method for updating a new Neighbourhood"""
cls
neighbourhood_id
new_neighbourhood