Skip to content
This repository has been archived by the owner on May 13, 2020. It is now read-only.

Commit

Permalink
Decimal is also a reference-safe type.
Browse files Browse the repository at this point in the history
  • Loading branch information
strichter committed Nov 6, 2013
1 parent 755c52c commit d122bdb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mongopersist/interfaces.py
Expand Up @@ -14,6 +14,7 @@
"""Mongo Persistence Interfaces"""
from __future__ import absolute_import
import datetime
import decimal
import persistent.interfaces
import transaction.interfaces
import types
Expand All @@ -25,7 +26,7 @@
int, float, unicode, datetime.datetime, types.NoneType,
objectid.ObjectId, dbref.DBRef)
REFERENCE_SAFE_TYPES = (
datetime.date, datetime.time)
datetime.date, datetime.time, decimal.Decimal)


class ConflictError(transaction.interfaces.TransientError):
Expand Down

0 comments on commit d122bdb

Please sign in to comment.