Skip to content

Commit

Permalink
Fix valid fields import
Browse files Browse the repository at this point in the history
  • Loading branch information
jianyuan committed Jan 31, 2018
1 parent 49577f1 commit 052de5b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions business_rules/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ def float_to_decimal(f):


def get_valid_fields():
from . import fields

valid_fields = [getattr(fields, f) for f in dir(fields) if f.startswith("FIELD_")]
return valid_fields

Expand Down

0 comments on commit 052de5b

Please sign in to comment.