X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/f6d6ed3eb1f778545c819fa93a7e664ed5c4e445..cbe73973da74989e11e3bb3a75f6c14cbabb3064:/forum_modules/updater/base.py?ds=inline diff --git a/forum_modules/updater/base.py b/forum_modules/updater/base.py index 995c70c..7635b60 100644 --- a/forum_modules/updater/base.py +++ b/forum_modules/updater/base.py @@ -4,7 +4,7 @@ import re import urllib2 -from forum.models import Question +from forum.models import Question, User from forum.settings import APP_URL def generate_installation_key(): @@ -38,3 +38,11 @@ def get_server_name(): return server_name except: return 'Unknown' + +def get_admin_emails(): + emails = [] + + for user in User.objects.filter(is_superuser=True): + emails.append(user.email) + + return emails \ No newline at end of file