Round max number limit down

A round number feels better than a very arbitrary-looking one.
This commit is contained in:
Chris Hill-Scott
2019-02-27 13:02:55 +00:00
parent 1a94137ff6
commit 9691ef27da
2 changed files with 4 additions and 3 deletions

View File

@@ -175,7 +175,8 @@ class SMSCode(StringField):
class ForgivingIntegerField(StringField):
POSTGRES_MAX_INT = 2147483647
# Actual value is 2147483647 but this is a scary looking arbitrary number
POSTGRES_MAX_INT = 2000000000
def __init__(self, label=None, things='items', **kwargs):
self.things = things