Skip to content

Commit

Permalink
reverted duplicate_txn_id helper to previous incarnation as we only s…
Browse files Browse the repository at this point in the history
…ave pdt objects to database after checking
  • Loading branch information
mthornhill committed Apr 21, 2009
1 parent c254fb6 commit 5a3d7e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions standard/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# -*- coding: utf-8 -*-


def duplicate_txn_id(ipn_obj, count=0):
def duplicate_txn_id(ipn_obj):
"Returns True if a record with this transaction id exists."
return ipn_obj._default_manager.filter(txn_id=ipn_obj.txn_id).count() > count
return ipn_obj._default_manager.filter(txn_id=ipn_obj.txn_id).count() > 0

def make_secret(form_instance, secret_fields=None):
"""
Expand Down

0 comments on commit 5a3d7e9

Please sign in to comment.