Skip to content

Commit

Permalink
Merge pull request #672 from bradmontgomery/patch-1
Browse files Browse the repository at this point in the history
Force the result of filter into a list
  • Loading branch information
trbs committed May 7, 2015
2 parents fac3c78 + 9145f21 commit 23115ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django_extensions/management/commands/notes.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Command(BaseCommand):
@signalcommand
def handle(self, *args, **options):
# don't add django internal code
apps = filter(lambda app: not app.startswith('django.contrib'), settings.INSTALLED_APPS)
apps = [app for app in filter(lambda app: not app.startswith('django.contrib'), settings.INSTALLED_APPS)]
template_dirs = getattr(settings, 'TEMPLATE_DIRS', [])
if template_dirs:
apps += template_dirs
Expand Down

0 comments on commit 23115ec

Please sign in to comment.