coalition.endorsements.admin ============================ .. py:module:: coalition.endorsements.admin Classes ------- .. autoapisummary:: coalition.endorsements.admin.EndorsementAdmin Module Contents --------------- .. py:class:: EndorsementAdmin(model, admin_site) Bases: :py:obj:`django.contrib.admin.ModelAdmin` Encapsulate all admin options and functionality for a given model. .. py:attribute:: list_display :value: ('stakeholder_name', 'stakeholder_organization', 'endorsement_type', 'campaign', 'status_badge',... .. py:attribute:: list_filter :value: ('status', 'email_verified', 'public_display', 'display_publicly', 'created_at', 'campaign',... .. py:attribute:: search_fields :value: ('stakeholder__first_name', 'stakeholder__last_name', 'stakeholder__organization',... .. py:attribute:: raw_id_fields :value: ('stakeholder', 'campaign', 'reviewed_by') .. py:attribute:: ordering :value: ('-created_at',) .. py:attribute:: readonly_fields :value: ('verification_token', 'verification_sent_at', 'verified_at', 'terms_accepted',... .. py:attribute:: fieldsets .. py:attribute:: actions :value: ['approve_endorsements', 'reject_endorsements', 'mark_verified', 'send_verification_emails',... .. py:method:: stakeholder_name(obj: coalition.endorsements.models.Endorsement) -> str .. py:method:: stakeholder_organization(obj: coalition.endorsements.models.Endorsement) -> str .. py:method:: endorsement_type(obj: coalition.endorsements.models.Endorsement) -> str .. py:method:: status_badge(obj: coalition.endorsements.models.Endorsement) -> str .. py:method:: email_verified_badge(obj: coalition.endorsements.models.Endorsement) -> str .. py:method:: verification_link(obj: coalition.endorsements.models.Endorsement) -> str .. py:method:: approve_endorsements(request: django.http.HttpRequest, queryset: django.db.models.QuerySet[coalition.endorsements.models.Endorsement]) -> None .. py:method:: reject_endorsements(request: django.http.HttpRequest, queryset: django.db.models.QuerySet[coalition.endorsements.models.Endorsement]) -> None .. py:method:: mark_verified(request: django.http.HttpRequest, queryset: django.db.models.QuerySet[coalition.endorsements.models.Endorsement]) -> None .. py:method:: send_verification_emails(request: django.http.HttpRequest, queryset: django.db.models.QuerySet[coalition.endorsements.models.Endorsement]) -> None .. py:method:: send_approval_notifications(request: django.http.HttpRequest, queryset: django.db.models.QuerySet[coalition.endorsements.models.Endorsement]) -> None .. py:method:: approve_for_display(request: django.http.HttpRequest, queryset: django.db.models.QuerySet[coalition.endorsements.models.Endorsement]) -> None .. py:method:: remove_from_display(request: django.http.HttpRequest, queryset: django.db.models.QuerySet[coalition.endorsements.models.Endorsement]) -> None .. py:method:: save_model(request: django.http.HttpRequest, obj: coalition.endorsements.models.Endorsement, form: Any, change: bool) -> None Given a model instance save it to the database.