ups, import render_to_json_response
This commit is contained in:
parent
fa32d2d6cd
commit
a852e6ec4b
|
@ -1,5 +1,5 @@
|
||||||
from models import *
|
from models import *
|
||||||
from ox.django.shortcuts import get_object_or_404_json
|
from ox.django.shortcuts import get_object_or_404_json, render_to_json_response
|
||||||
|
|
||||||
def route(request, code):
|
def route(request, code):
|
||||||
route = get_object_or_404_json(Route, code=code)
|
route = get_object_or_404_json(Route, code=code)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user