'Function shows messages in the news'

def read(self, request, record_id=None, *args, **kwargs):

    profile = request.user.profile
    query = _get_filter_query(profile, filters=request.GET)
    try:
        if record_id:
            return UpdateRecord.objects.filter(query).get(id=record_id)
        else:
            return UpdateRecord.objects.filter(query).distinct()
    except self.model.DoesNotExist:
        return rc.NOT_FOUND
    except self.model.MultipleObjectsReturned:
        return rc.BAD_REQUEST
