[PATCH] change how we import things
Kumar Gala
galak at kernel.crashing.org
Fri Dec 19 10:00:48 EST 2008
This was the fix we made that helped patchworks work for my install
diff --git a/apps/patchwork/views/base.py b/apps/patchwork/views/base.py
index a827d10..e30fc6e 100644
--- a/apps/patchwork/views/base.py
+++ b/apps/patchwork/views/base.py
@@ -26,9 +26,8 @@ from django.http import HttpResponse, HttpResponseRedirect, Http404
from django.db import transaction
from django.contrib.auth.models import User
from django.contrib.auth.decorators import login_required
-import django.core.urlresolvers
from patchwork.requestcontext import PatchworkRequestContext
-from django.core import serializers
+from django.core import serializers, urlresolvers
from django.template.loader import render_to_string
from django.conf import settings
@@ -38,7 +37,7 @@ def projects(request):
if projects.count() == 1:
return HttpResponseRedirect(
- django.core.urlresolvers.reverse('patchwork.views.patch.list',
+ urlresolvers.reverse('patchwork.views.patch.list',
kwargs = {'project_id': projects[0].linkname}))
context['projects'] = projects
More information about the Patchwork
mailing list