type object 'redirectData' has no attribute 'create'
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3m48s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3m48s
This commit is contained in:
@@ -36,7 +36,7 @@ def redirect_process(request):
|
||||
key = key.lower()
|
||||
|
||||
r.set(key, value)
|
||||
redirectData.create(url=key,addedDate=datetime.datetime.now(),seenDate="")
|
||||
redirectData.objects.create(url=key,addedDate=datetime.datetime.now(),seenDate="")
|
||||
text_generated = "successfully set "+value+" to "+key
|
||||
return HttpResponse(text_generated, content_type="text/plain")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user