Update syntax for relative imports

This commit is contained in:
Magnus Hagander
2019-01-19 19:38:00 +01:00
parent 142f0805c2
commit 7547b6f766
46 changed files with 59 additions and 59 deletions

View File

@ -1,5 +1,5 @@
from django.contrib import admin
from models import Survey, SurveyLock, SurveyAnswer
from .models import Survey, SurveyLock, SurveyAnswer
class SurveyAdmin(admin.ModelAdmin):

View File

@ -8,7 +8,7 @@ from pgweb.util.contexts import render_pgweb
from pgweb.util.misc import get_client_ip, varnish_purge
from pgweb.util.helpers import HttpServerError
from models import Survey, SurveyAnswer, SurveyLock
from .models import Survey, SurveyAnswer, SurveyLock
def results(request, surveyid, junk=None):