Doh! You're absolutely right Malcom. Sorry, don't know why I didn't
see that before.
So, now that I have my lovely permission, I have a new problem...
I need the ability to let a user 'add' a story, even if they can't
'approve' one. So, I'm wondering where I should try to disable the
field? In
Hi everyone,
I'm trying to enforce a customer permission on Add/Update. In my
model, I have defined the permission:
permissions = (
('can_approve_stories','Can Approve Stories'),
)
in my model.ModelAdmin I have:
def change_view(self, request, obj_id):
I believe you can override get_form and have it create a new modelform
for each request, you'd probably have to look into the source to see
what the method and signature look like.
On Jul 21, 8:04 pm, Brandon Taylor <[EMAIL PROTECTED]> wrote:
> Doh! You're absolutely right Malcom. Sorry, don't
On Mon, 2008-07-21 at 15:46 -0700, Brandon Taylor wrote:
> Hi everyone,
>
> I'm trying to enforce a customer permission on Add/Update. In my
> model, I have defined the permission:
>
> permissions = (
>('can_approve_stories','Can Approve Stories'),
> )
>
>
>
4 matches
Mail list logo