Esempio n. 1
0
    def get(self, request, *args, **kw):

        url = "https://coi.athabascau.ca/coi-model/"
        userid = request.GET.get('userid', None)

        entry = AccessLog(url=url, userid=userid)
        entry.save()
        response = Response("Logged External Link Click", status=status.HTTP_200_OK)
        return response
Esempio n. 2
0
    def get(self, request, *args, **kw):

        url = "https://coi.athabascau.ca/coi-model/"
        userid = request.GET.get('userid', None)

        entry = AccessLog(url=url, userid=userid)
        entry.save()
        response = Response("Logged External Link Click",
                            status=status.HTTP_200_OK)
        return response
Esempio n. 3
0
def accesslog(userid, url):
    entry = AccessLog(url=url, userid=userid)
    entry.save()
Esempio n. 4
0
def accesslog(userid,url):
    entry = AccessLog(url=url, userid=userid)
    entry.save()