beat.web.common.admin module

class beat.web.common.admin.GuardedModelAdminMixin[source]

Bases: guardian.admin.GuardedModelAdminMixin

property queryset
class beat.web.common.admin.Django18ProofGuardedModelAdmin(model, admin_site)[source]

Bases: beat.web.common.admin.GuardedModelAdminMixin, django.contrib.admin.options.ModelAdmin

Extend this class if your model is guarded by Guardian (per-object authorization).

This class is a workaround for Django-1.8. See more at issue #307 https://github.com/django-guardian/django-guardian/issues/307

property media
beat.web.common.admin.notify_by_email(attribute=None)[source]

Generates a notify_by_email() admin action. If attribute is set, then, use it as to restrict the number of users the email will be sent to.