Newfies-Dialer Admin Views

CampaignAdmin

class dialer_campaign.admin.CampaignAdmin(model, admin_site)

Allows the administrator to view and modify certain attributes of a Campaign.

add_view(request, extra_context=None)

Override django add_view method for checking the dialer setting limit

Logic Description:

  • Before adding campaign, check dialer setting limit if applicable to the user, if matched then the user will be redirected to the campaign list

SubscriberAdmin

class dialer_campaign.admin.SubscriberAdmin(model, admin_site)

Allows the administrator to view and modify certain attributes of a Subscriber.

form

alias of SubscriberAdminForm

subscriber_report(request)

Get subscriber report

Attributes:

  • form - SubscriberReportForm
  • template - admin/dialer_campaign/subscriber/subscriber_report.html

PhonebookAdmin

class dialer_contact.admin.PhonebookAdmin(model, admin_site)

Allows the administrator to view and modify certain attributes of a Phonebook.

ContactAdmin

class dialer_contact.admin.ContactAdmin(model, admin_site)

Allows the administrator to view and modify certain attributes of a Contact.

add_view(request, extra_context=None)

Override django admin add_view method for checking the dialer setting limit

Logic Description:

  • Before adding a contact, check the dialer setting limit if applicable to the user. If matched, the user will be redirected to the contact list
import_contact(request)

Add custom method in django admin view to import CSV file of Contacts

Attributes:

  • form - Contact_fileImport
  • template - admin/dialer_campaign/contact/import_contact.html

Logic Description:

  • Before adding contact, check the dialer setting limit if applicable to the user.
  • Add a new contact which will belong to the logged in user via csv file & get the result (Upload success & failure statistics)

Important variable:

  • total_rows - Total no. of records in the CSV file
  • retail_record_count - No. of records which are imported from The CSV file

CallrequestAdmin

class dialer_cdr.admin.CallrequestAdmin(model, admin_site)

Allows the administrator to view and modify certain attributes of a Callrequest.

VoIPCallAdmin

class dialer_cdr.admin.VoIPCallAdmin(model, admin_site)

Allows the administrator to view and modify certain attributes of a VoIPCall.

changelist_view(request, extra_context=None)

Override changelist_view method of django-admin for search parameters

Attributes:

  • form - AdminVoipSearchForm
  • template - admin/dialer_cdr/voipcall/change_list.html

Logic Description:

  • VoIP report Record Listing with search option & Daily Call Report search Parameters: by date, by status and by billed.
export_voip_report(request)

Export a CSV file of VoIP call records

Important variable:

  • request.session[‘admin_voipcall_record_kwargs’] - stores voipcall kwargs
Exported fields: [user, callid, callerid, phone_number,
starting_date, duration, disposition, used_gateway]
has_add_permission(request)

Remove add permission on VoIP Call Report model

Logic Description:

  • Override django admin has_add_permission method to remove add permission on VoIP Call Report model

Used gateway link to edit gateway detail

User link to user profile

GatewayAdmin

class dialer_gateway.admin.GatewayAdmin(model, admin_site)

Allows the administrator to view and modify certain attributes of a Gateway.

DialerSettingAdmin

class dialer_settings.admin.DialerSettingAdmin(model, admin_site)

Allows the administrator to view and modify certain attributes of a DialerSetting.

SurveyAdmin

class survey.admin.SurveyAdmin(model, admin_site)

Allows the administrator to view and modify survey.

SectionAdmin

class survey.admin.SectionAdmin(model, admin_site)

Allows the administrator to view and modify survey question.

BranchingAdmin

class survey.admin.BranchingAdmin(model, admin_site)

Allows the administrator to view and modify branching.

ResultAdmin

class survey.admin.ResultAdmin(model, admin_site)

Allows the administrator to view and modify survey results.

ResultAggregate

class survey.admin.ResultAggregate(*args, **kwargs)

This gives survey result aggregate, used to display survey result in a more efficient way

Name of DB table: result_aggregate

CalendarSettingAdmin

class calendar_settings.admin.CalendarSettingAdmin(model, admin_site)

CalendarUserAdmin

class appointment.admin.CalendarUserAdmin(model, admin_site)

CalendarAdmin

class appointment.admin.CalendarAdmin(model, admin_site)

EventAdmin

class appointment.admin.EventAdmin(model, admin_site)
form

alias of EventAdminForm

AlarmAdmin

class appointment.admin.AlarmAdmin(model, admin_site)