(self)
Unassigns the users assigned to that location.

        Used by both archive and delete methods
Unassigns the users assigned to that location.
Unassigns the users assigned to that location .
def _remove_user(self):
        """
        Unassigns the users assigned to that location.

        Used by both archive and delete methods
        """
        if self.user_id:
            from corehq.apps.users.models import CommCareUser
            user = CommCareUser.get(self.user_id)
            user.active = False
            user.save()
def _remove_user ( self ) : if self . user_id : from corehq . apps . users . models import CommCareUser user = CommCareUser . get ( self . user_id ) user . active = False user . save ( )