fix regex page no issue
This commit is contained in:
parent
03edb7e6b4
commit
ee3b51a24e
|
@ -86,6 +86,7 @@ def translate(request, model, field, page_no=1):
|
||||||
# limit = False
|
# limit = False
|
||||||
# else:
|
# else:
|
||||||
# limit = True
|
# limit = True
|
||||||
|
# print page_no
|
||||||
try:
|
try:
|
||||||
m = models.__getattribute__(model)
|
m = models.__getattribute__(model)
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
|
|
|
@ -15,7 +15,7 @@ urlpatterns = patterns('',
|
||||||
# Uncomment the next line to enable the admin:
|
# Uncomment the next line to enable the admin:
|
||||||
|
|
||||||
# for human translators
|
# for human translators
|
||||||
(r'^trans/(?P<model>[A-Za-z].*?)/(?P<field>[A-Za-z].*?)/(?P<page_no>[0-9]*?)', 'ships.views.translate'),
|
(r'^trans/(?P<model>[A-Za-z].*?)/(?P<field>[A-Za-z].*?)/(?P<page_no>\d*)/', 'ships.views.translate'),
|
||||||
# (r'^dotrans/(?P<model>[A-Za-z].*?)/(?P<field>[A-Za-z].*?)/', 'ships.views.dotranslate'),
|
# (r'^dotrans/(?P<model>[A-Za-z].*?)/(?P<field>[A-Za-z].*?)/', 'ships.views.dotranslate'),
|
||||||
|
|
||||||
# for automated google translation
|
# for automated google translation
|
||||||
|
|
Loading…
Reference in New Issue
Block a user