Integration

This section describes how to integrate pennyblack into your project.

class pennyblack.options.NewsletterReceiverMixin

Mixin for every object that can receive a newsletter

class pennyblack.options.JobUnitMixin

Mixin for every object which can be target of a Job

create_newsletter(form_data=None)

Creates a newsletter for every NewsletterReceiverMixin

get_newsletter_receiver_collections()

Returns a dict of valid receiver collections has to be overriden in the object to return a tuple of querysets return ((‘all’,{}),) {} is used to filter the queryset when evaluating the get_receiver_filtered_queryset function.

get_receiver_filtered_queryset(**kwargs)

Takes the second part of the collections

class pennyblack.options.JobUnitAdmin(model, admin_site)

Admin model for objects wich are capable of sending newsletters to it’s members.

Previous topic

Settings

Next topic

Template

This Page