AccountContact View

AccountContact views for smarter api.

class smarter.apps.account.api.v1.views.account_contact.AccountContactListView(*args, **kwargs)[source]

Bases: AccountListViewBase

AccountContact list view for smarter api.

get_queryset()[source]

Get the list of items for this view. This must be an iterable, and may be a queryset. Defaults to using self.queryset.

This method should always be used rather than accessing self.queryset directly, as self.queryset gets evaluated only once, and those results are cached for all subsequent requests.

You may want to override this if you need to provide different querysets depending on the incoming request.

(Eg. return a list of items that is specific to the user)

serializer_class

alias of AccountContactSerializer

class smarter.apps.account.api.v1.views.account_contact.AccountContactView(*args, **kwargs)[source]

Bases: AccountViewBase

AccountContact view for smarter api.

account_contact: AccountContact
delete(request, account_contact_id)[source]
get(request, account_contact_id)[source]
patch(request, account_contact_id=None)[source]
post(request)[source]
serializer_class

alias of AccountContactSerializer