forked from jazzband/django-newsletter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create contrib folder with initial contents.
- Loading branch information
Showing
2 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Assorted contributions | ||
====================== | ||
|
||
Various contributions which are not part of the official Python package but | ||
might be useful to other users nonetheless. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
-- Export a list of currently active subscribers and subscription dates | ||
-- Tested to work with MySQL | ||
SELECT | ||
IFNULL(newsletter_subscription.name, CONCAT_WS(' ', auth_user.first_name, auth_user.last_name)) AS name, | ||
IFNULL(newsletter_subscription.email, auth_user.email) AS email, | ||
subscribe_date | ||
FROM newsletter_subscription | ||
LEFT JOIN auth_user | ||
ON newsletter_subscription.user_id = auth_user.id | ||
WHERE | ||
subscribed = 1 AND | ||
unsubscribed = 0 | ||
|