Skip to content

Commit 4cf6e27

Browse files
committed
update readme
1 parent 63223eb commit 4cf6e27

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,10 @@ Configuration
124124

125125
Define in settings.py
126126

127-
- AFFILIATE_AFFILIATE_MODEL - the model to use to represent an Affiliate, similar to [AUTH_USER_MODEL](https://docs.djangoproject.com/en/dev/ref/settings/#std:setting-AUTH_USER_MODEL). Default `'affiliate.Affiliate'`.
127+
- AFFILIATE_AFFILIATE_MODEL - the model to use to represent an Affiliate, similar to [AUTH_USER_MODEL](https://docs.djangoproject.com/en/dev/ref/settings/#std:setting-AUTH_USER_MODEL). Mandatory, must be explicitly defined.
128128
- AFFILIATE_PARAM_NAME - name of affiliate GET parameter in url. Default `'aid'`.
129129
- AFFILIATE_REWARD_AMOUNT - default affiliate reward amount. Can be set as string (`'5.55'`) or as int (`10`). Default `10`.
130-
- AFFILIATE_REWARD_PERCENTAGE - if True, that `AFFILIATE_REWARD_AMOUNT` is treated as percentage. Otherwise as exact amount of money. Default `True`.
130+
- AFFILIATE_REWARD_PERCENTAGE - if True, `AFFILIATE_REWARD_AMOUNT` is treated as percentage. Otherwise as exact amount of money. Default `True`.
131131
- AFFILIATE_SAVE_IN_SESSION - save affiliate id in session or not. Default `True`.
132132
- AFFILIATE_SESSION_AGE - how long keep affiliate id in session, in seconds. Default `5 * 24 * 60 * 60` seconds (5 days).
133-
- AFFILIATE_DEFAULT_LINK - default link, that will be used by Affiliate.build_absolute_affiliate_uri. Default `'/'`.
133+
- AFFILIATE_DEFAULT_LINK - default link, that will be used by `Affiliate.build_absolute_affiliate_uri` and `.build_affiliate_url`. Default `'/'`.

0 commit comments

Comments
 (0)