uh remove the pdb set_trace()
This commit is contained in:
parent
91e246b965
commit
2513469028
|
@ -10,7 +10,7 @@ from ox.django.shortcuts import render_to_json_response
|
||||||
from django.views.decorators.csrf import csrf_exempt
|
from django.views.decorators.csrf import csrf_exempt
|
||||||
from django.contrib.auth.decorators import login_required
|
from django.contrib.auth.decorators import login_required
|
||||||
from django.core.paginator import Paginator, InvalidPage, EmptyPage
|
from django.core.paginator import Paginator, InvalidPage, EmptyPage
|
||||||
import pdb
|
#import pdb
|
||||||
|
|
||||||
@login_required
|
@login_required
|
||||||
def googletranslate(request, model, field):
|
def googletranslate(request, model, field):
|
||||||
|
@ -155,7 +155,7 @@ def stringtranslate(request):
|
||||||
trans_field = field + "_trans"
|
trans_field = field + "_trans"
|
||||||
matches = m.objects.filter(q)
|
matches = m.objects.filter(q)
|
||||||
savedObjects = 0
|
savedObjects = 0
|
||||||
pdb.set_trace()
|
# pdb.set_trace()
|
||||||
for match in matches:
|
for match in matches:
|
||||||
match.__setattr__(trans_field, translation)
|
match.__setattr__(trans_field, translation)
|
||||||
match.save()
|
match.save()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user