Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion entity_emailer/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import traceback

from datetime import datetime

from django.db import transaction
from django.core import mail
from entity_event import context_loader

Expand Down Expand Up @@ -122,6 +122,7 @@ def convert_events_to_emails():
Email.objects.create_email(event=event, from_address=from_address, recipients=targets)

@staticmethod
@transaction.atomic
def bulk_convert_events_to_emails():
"""
Converts unseen events to emails and marks them as seen. Uses the create_emails method to bulk create
Expand Down
2 changes: 1 addition & 1 deletion entity_emailer/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '2.0.0.1'
__version__ = '2.0.0.2'
4 changes: 4 additions & 0 deletions release_notes.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Release Notes
=============

v2.0.0.2
------
* Atomic decorator on event fetching

v2.0.0.1
------
* Fix unique constraint when bulk creating emails
Expand Down