Load campaign with Decimal target amount.

pull/1/head
Raymond Yee 2011-10-12 15:48:41 -07:00
parent 63203ae129
commit d82cda07ba
1 changed files with 2 additions and 1 deletions

View File

@ -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()