summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Seguin <guillaume@segu.in>2008-05-04 10:30:14 +0000
committerGuillaume Seguin <guillaume@segu.in>2008-05-04 10:30:14 +0000
commit8af3e1a1f759b15c7304b3782b43580439ad7387 (patch)
treececbacfb1ca1f55a06b7cae713559c7e8cfde9ef
parente5f071a75f14ea2500f094d4ad3027622eaabb3f (diff)
downloadstocktrader-8af3e1a1f759b15c7304b3782b43580439ad7387.tar.gz
stocktrader-8af3e1a1f759b15c7304b3782b43580439ad7387.tar.bz2
* Add mailing-related fields to StockPlayer model and update admin bits
-rw-r--r--main/models.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/main/models.py b/main/models.py
index 8674ffb..b48c4b0 100644
--- a/main/models.py
+++ b/main/models.py
@@ -357,9 +357,11 @@ class StockPlayer (models.Model):
usd = models.FloatField (_("Current amount of USD"))
eur = models.FloatField (_("Current amount of EUR"))
gbp = models.FloatField (_("Current amount of GBP"))
+ daily_mails = models.BooleanField (_("Receive daily mails"))
+ weekly_mails = models.BooleanField (_("Receive weekly mails"))
class Admin:
- list_display = ('user', 'usd', 'eur', 'gbp',)
+ list_display = ('user', 'team', 'usd', 'eur', 'gbp',)
ordering = ('user',)
class Meta: