Fehler bei Vergabe von Bonuspunkte korrigiert.

Kommentare für Bonuspunkte werden jetzt als Kommentar beim Spieler hinterlassen, nicht als Kommentar in der Hanchan.
FIXED: 3_in_a_row counter wurde nicht zurückgesetzt wenn Bonuspunkte vergeben wurden.
FIXED: Durchschnittliche Platzierung während eines Events wurde nur als Ganzzahl berechnet. Wird nun als Fießkomma berechnet und gesichert.
This commit is contained in:
Christian Berg
2016-01-09 22:55:26 +01:00
parent 088efe2f39
commit b1586efbab
155 changed files with 2571 additions and 2835 deletions

View File

@@ -11,10 +11,8 @@ from django.contrib.auth.models import AbstractUser
from django.core.urlresolvers import reverse
from django.db import models
from django.utils.translation import ugettext as _
from imagekit.models import ImageSpecField
from imagekit.processors import SmartResize
from . import PAID_MEMBERSHIP_GROUP
from easy_thumbnails.fields import ThumbnailerImageField
from utils import OverwriteStorage
@@ -152,7 +150,7 @@ class Membership(AbstractUser):
# last_name = models.CharField(_("Last Name"), max_length=30)
# email = models.EmailField(_('Email'), unique=True)
website = models.URLField(blank=True)
avatar = models.ImageField(
avatar = ThumbnailerImageField(
upload_to=get_upload_path,
storage=OverwriteStorage(),
blank=True,
@@ -201,21 +199,9 @@ class Membership(AbstractUser):
default=False,
help_text=_('This person has paid the membership fee.')
)
comment = models.TextField(blank=True)
# comment = models.TextField(blank=True)
# objects = MembershipManager()
thumbnail = ImageSpecField(
format='JPEG',
source='avatar',
processors=[SmartResize(width=60, height=60)],
)
profile = ImageSpecField(
processors=[SmartResize(width=140, height=140)],
format='PNG',
source='avatar',
)
class Meta(object):
ordering = ('username', )
swappable = 'AUTH_USER_MODEL'