Load campaign with Decimal target amount.
parent
63203ae129
commit
d82cda07ba
|
@ -1,5 +1,6 @@
|
|||
from random import randint, randrange
|
||||
from datetime import datetime, timedelta
|
||||
from decimal import Decimal as D
|
||||
|
||||
from django.core.management.base import BaseCommand
|
||||
|
||||
|
@ -18,7 +19,7 @@ class Command(BaseCommand):
|
|||
campaign.description = "Test Campaign"
|
||||
|
||||
# random campaign target between $200 and $10,000
|
||||
campaign.target = float(randint(200,10000))
|
||||
campaign.target = D(randint(200,10000))
|
||||
|
||||
# random deadline between 5 days from now and 180 days from now
|
||||
now = datetime.now()
|
||||
|
|
Loading…
Reference in New Issue