API Reference

Parameter

class Parameter

The Parameter is a mixin to define marketing parameters like Campaign.

classmethod Parameter.from_name(name[, create])

Return the parameter instance for the name. If create is set and no instance is found, a new instance is created.

Campaign

class MarketingCampaignMixin

The MarketingCampaignMixin is a mixin to add marketing parameters to a Model. They are filled by default using the string value from the context key of the same name.

classmethod MarketingCampaignMixin.marketing_campaign_fields()

Yield the field names of the Parameter fields.