Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doesn't work with class-based views (e.g. Django syndication framework) #1

Open
akaihola opened this issue Jul 24, 2010 · 1 comment

Comments

@akaihola
Copy link

If a view is not a function, privatebeta can't get its __name__:

File "privatebeta/middleware.py", line 45, in process_view
    full_view_name = '%s.%s' % (view_func.__module__, view_func.__name__)

AttributeError: 'MyFeed' object has no attribute '__name__'

In my case MyFeed is a subclass of django.contrib.syndication.views.Feed and the corresponding URL rule is:

(r'^myfeed/$', MyFeed())
@alekam
Copy link

alekam commented Oct 19, 2010

this fixed in my fork

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants