from games import models


def get_unpublished_installers(count=10):
    return models.Installer.objects.filter(published=False).order_by('?')[:count]


def get_unpublished_screenshots(count=10):
    return models.Screenshot.objects.filter(published=False).order_by('?')[:count]


def get_unreviewed_game_submissions(count=10):
    return models.GameSubmission.objects.filter(accepted_at__isnull=True).order_by('?')[:count]


def get_installer_issues(count=10):
    return models.InstallerIssue.objects.all().order_by('?')[:count]


def get_mod_mail_content():
    return {
        'installers': get_unpublished_installers(),
        'screenshots': get_unpublished_screenshots(),
        'submissions': get_unreviewed_game_submissions(),
        'issues': get_installer_issues()
    }

@@ -19,16 +19,36 @@
 models%0A%0A
+DEFAULT_COUNT = 12%0A%0A
 %0Adef get
@@ -69,34 +69,45 @@
 nstallers(count=
-10
+DEFAULT_COUNT
 ):%0A    return mo
@@ -207,34 +207,45 @@
 reenshots(count=
-10
+DEFAULT_COUNT
 ):%0A    return mo
@@ -350,34 +350,45 @@
 bmissions(count=
-10
+DEFAULT_COUNT
 ):%0A    return mo
@@ -507,10 +507,21 @@
 unt=
-10
+DEFAULT_COUNT
 ):%0A 

Set the default number of items to 12 because it fits more nicely on the email