Fantomas42/django-blog-zinnia — pull request #245 by smcoll (2013-05-28 16:21:36+00:00)
Title: refined _get_user_flagger()

Had a use case where COMMENT_FLAG_USER_ID was not set, and 'Zinnia-Flagger' user had already been created. This fix prevents a the following error:

IntegrityError: duplicate key value violates unique constraint "auth_user_username_key"
DETAIL: Key (username)=(Zinnia-Flagger) already exists.