more around default fav charts
This commit is contained in:
@@ -298,6 +298,10 @@ class Rower(models.Model):
|
||||
defaulttimezone = models.CharField(default='UTC',max_length=100,
|
||||
choices=timezones,
|
||||
verbose_name='Default Time Zone')
|
||||
|
||||
# Show flex chart notes
|
||||
showfavoritechartnotes = models.BooleanField(default=True,
|
||||
verbose_name='Show Notes for Favorite Charts')
|
||||
|
||||
def __str__(self):
|
||||
return self.user.username
|
||||
@@ -353,7 +357,11 @@ class FavoriteForm(ModelForm):
|
||||
class Meta:
|
||||
model = FavoriteChart
|
||||
fields = ['xparam','yparam1','yparam2',
|
||||
'plottype','workouttype','reststrokes']
|
||||
'plottype','workouttype','reststrokes','notes']
|
||||
widgets = {
|
||||
'notes': forms.Textarea,
|
||||
}
|
||||
|
||||
|
||||
# To generate favorite chart forms on the fly
|
||||
class BaseFavoriteFormSet(BaseFormSet):
|
||||
@@ -830,7 +838,8 @@ class RowerPowerZonesForm(ModelForm):
|
||||
class AccountRowerForm(ModelForm):
|
||||
class Meta:
|
||||
model = Rower
|
||||
fields = ['weightcategory','getemailnotifications','defaulttimezone']
|
||||
fields = ['weightcategory','getemailnotifications',
|
||||
'defaulttimezone','showfavoritechartnotes']
|
||||
|
||||
class UserForm(ModelForm):
|
||||
class Meta:
|
||||
|
||||
Reference in New Issue
Block a user