#14670 closed (fixed)
GenericTabularInline broken as of r13708
Reported by: | Sean Brant | Owned by: | Gregor Müllegger |
---|---|---|---|
Component: | Contrib apps | Version: | dev |
Severity: | Keywords: | sprintnov13 | |
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Using GenericTabularLine seem to have a regression as of r13708. I get the following 'NoneType' object has no attribute 'user'
using r13708 and no error using r13707. Line 292 of options.py is throwing the error return request.user.has_perm(opts.app_label + '.' + opts.get_add_permission())
because request is None. Sorry I don't have a patch Im not real clear on what is going on in the code. As a side note im just using a barebones GenericTabularLine and ModelAdmin.
Attachments (1)
Change History (7)
comment:1 by , 14 years ago
comment:2 by , 14 years ago
Keywords: | sprintnov13 added |
---|---|
Owner: | changed from | to
Status: | new → assigned |
Triage Stage: | Unreviewed → Accepted |
comment:3 by , 14 years ago
Seems to me like r13708 introduced this error. But it's not obvious why yet. I will look into in detail later.
comment:4 by , 14 years ago
Has patch: | set |
---|---|
Triage Stage: | Accepted → Ready for checkin |
Sorry for my previous embarrassing comment. I should have read the title of the ticket and looked at the specific revision in more detail.
However it's fixed now. Fix and tests are attached in the patch.
comment:5 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
(Please include tracebacks in reports like this.)
Traceback pulled from dpaste (it was referenced in IRC):