Skip to content
This repository has been archived by the owner on Aug 26, 2022. It is now read-only.

Commit

Permalink
bug 662529 fix contentflagging email notifications and add profile ad…
Browse files Browse the repository at this point in the history
…min search
  • Loading branch information
groovecoder committed Jun 9, 2011
1 parent 4dc8e6f commit 0fedc6d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion apps/contentflagging/models.py
Expand Up @@ -37,7 +37,9 @@
("deleted", _("Content deleted by moderator")),
))

FLAG_NOTIFICATIONS = dict([reason, True] for reason in FLAG_REASONS)
FLAG_NOTIFICATIONS = {}
for reason in FLAG_REASONS:
FLAG_NOTIFICATIONS[reason[0]] = True
# to refine flag notifications, change preceding line to False and add
# individual reasons to the set like so:
#FLAG_NOTIFICATIONS['inappropriate'] = True
Expand Down
1 change: 1 addition & 0 deletions apps/devmo/admin.py
Expand Up @@ -4,6 +4,7 @@

class ProfileAdmin(admin.ModelAdmin):
list_display = ('user_name',)
search_fields = ['user__username']

def user_name(self, obj):
return obj.user.username
Expand Down
4 changes: 2 additions & 2 deletions settings.py
Expand Up @@ -573,8 +573,8 @@ def JINJA_CONFIG():
QUESTIONS_SUGGESTION_SLOP = 3

# Email
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'

EMAIL_BACKEND = 'django.core.mail.backends.filebased.EmailBackend'
EMAIL_FILE_PATH = '/tmp/kuma-messages'

# Read-only mode setup.
READ_ONLY = False
Expand Down

0 comments on commit 0fedc6d

Please sign in to comment.