Raymond Yee
b289a8cfd3
Fixing how now() is being called in random_campaigns command
2012-05-02 23:49:55 +00:00
Raymond Yee
a252f9d173
[ #22561067 ] Implemented regluit.utils.localdatetime.now is by default datetime.datetime.now() (in Django 1.3) and django.utils.timezone.now() in Django 1.4+
...
One overrides regluit.utils.localdatetime._now to do "time travel" -- useful for testing scenarios requiring time changes (such as Campaigns)
Get rid of call references to datetime.datetime.now() or utcnow() and datetime.date.today() in favor of regluit.utils.localdatetime.now() and date_today().
2012-03-09 00:45:39 +00:00
Raymond Yee
7cc9a1047a
Do ascii encoding of print message so that the print statement doesn't die on non-ascii words.
2011-12-14 18:04:09 +00:00
Raymond Yee
7894357f1d
Made sure that we don't try activate an already active campaign in generating random campaigns
2011-10-25 09:33:01 -07:00
Andromeda Yelton
246924c03f
still merging changes after internet librarian
2011-10-21 15:35:31 -04:00
Andromeda Yelton
ce0d20a028
added random activation of some campaigns
2011-10-21 14:45:43 -04:00
Raymond Yee
8cab4dc425
First pass integration of preapproval into campaign pledge form
2011-10-18 16:27:20 -07:00
Ed Summers
bc24d0ea71
activate the random campaigns
2011-10-14 14:26:57 +00:00
Andromeda Yelton
145c275795
Merge branch 'master' of github.com:Gluejar/regluit
...
Conflicts:
core/management/commands/random_campaigns.py
2011-10-13 12:46:52 -04:00
Andromeda Yelton
3773a6dd9c
switched to decimal to address python 2.6/2.7 compatibility bug
2011-10-13 12:21:53 -04:00
Raymond Yee
d82cda07ba
Load campaign with Decimal target amount.
2011-10-12 15:48:41 -07:00
Ed Summers
67ef77a757
added management command to create random campaigns for any works that lack a campaign
2011-09-12 00:04:22 -04:00