Skip to content

Commit

Permalink
Fixed bug in setup and template tag
Browse files Browse the repository at this point in the history
  • Loading branch information
dbrgn committed Sep 11, 2013
1 parent 909b167 commit e3f094f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion MANIFEST.in
@@ -1,3 +1,3 @@
include README.md
include README.rst
include LICENSE.txt
recursive-exclude * *.pyc
2 changes: 1 addition & 1 deletion messagegroups/templatetags/messagegroups.py
Expand Up @@ -21,6 +21,6 @@
def render_messages(messages):
grouped = defaultdict(set)
for m in messages:
tags = 'alert-{} {}'.format(TAGS[m.level], m.tags)
tags = 'alert-{0} {1}'.format(TAGS[m.level], m.tags)
grouped[(m.level, tags)].add(m.message)
return {'messages': dict(grouped)}
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -3,7 +3,7 @@
from distutils.core import setup

setup(name='django-messagegroups',
version='0.4.0',
version='0.4.1',
description='Render grouped messages with the Django messaging framework',
long_description=open('README.rst').read(),
author='Danilo Bargen',
Expand Down

0 comments on commit e3f094f

Please sign in to comment.