Skip to content

Django Tabbed Admin fail when has_change_permission is false #34

Description

@iwalucas

I have an admin class like this:

from tabbed_admin.admin import TabbedModelAdmin
class mlp(TabbedModelAdmin):
    model=Book
    tab_overview=(        
       ("",{"fields": ('name','status',),}), 
    ) 
    tabs=(
        ('Overview',tab_overview), 
        )

    def has_change_permission(self, request, obj=None):
        return False

When I try to open that in admin, I get:

"Key 'name' not found in 'BookForm'. Choices are: ."

Any idea what it may be? It works fine with the has_add/delete_permission.

Tks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions