Another possibility would be to add this to your settings.py file:
OWNABLE_MODELS_ALL_EDITABLE = ('blog.BlogPost',)That makes it so that anyone with access to the blog admin can edit any blog post, not just their own. On Thu, Jul 16, 2015 at 4:51 PM, Eduardo Rivas <[email protected]> wrote: > If you only want to override the add/change/delete permissions for the > BlogPost admin, you can do so by registering your own BlogPostAdmin class > instead of Mezzanine's. In the class methods you'll be able to make all > checks to grant permissions using custom logic. You'll also need to modify > the queryset used by the BlogPost admin. The methods I have in mind are > has_add_permission(), has_change_permission(), has_delete_permission() and > get_queryset(). All documented here: > https://docs.djangoproject.com/en/1.8/ref/contrib/admin/#django.contrib.admin.ModelAdmin.has_add_permission > . > > Just keep in mind that the BlogPost admin inherits from several classes > (and make sure you're familiar with the logic defined in OwnableAdmin, it > might even come in handy). > > All this is off the top of my head, so there might be hidden gotchas I > haven't considered. > > -- > You received this message because you are subscribed to the Google Groups > "Mezzanine Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
