[PATCH] change how we import things

Kumar Gala galak at kernel.crashing.org
Tue Jan 6 02:00:15 EST 2009


On Dec 18, 2008, at 5:00 PM, Kumar Gala wrote:

> This was the fix we made that helped patchworks work for my install

Jeremy,

Any updates on this?

- k

> 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
> _______________________________________________
> Patchwork mailing list
> Patchwork at ozlabs.org
> https://ozlabs.org/mailman/listinfo/patchwork




More information about the Patchwork mailing list