12 lines
304 B
Python
12 lines
304 B
Python
# Create your views here.
|
|
from models import Srt
|
|
from django.http import HttpResponse
|
|
|
|
def saveSrt(request):
|
|
txt = request.POST['txt']
|
|
lang = request.POST['language']
|
|
padmaId = request.POST['padmaId']
|
|
srt = Srt(txt=txt, language=lang, padmaId=padmaId)
|
|
srt.save()
|
|
return HttpResponse("saved")
|