Changeset fb327e1 in OpenWorkouts-current for ow/views/workout.py


Ignore:
Timestamp:
Feb 8, 2019, 12:53:00 PM (5 years ago)
Author:
Borja Lopez <borja@…>
Branches:
current, feature/docs, master
Children:
20782ac
Parents:
feab169
Message:

Fixed title(s) on the edit workout template.
Round distance value shown in the edit workout template.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ow/views/workout.py

    rfeab169 rfb327e1  
    128128        return HTTPFound(location=request.resource_url(context))
    129129
     130
     131    # round some values before rendering
     132    if form.data['distance']:
     133        form.data['distance'] = round(form.data['distance'], 2)
     134
    130135    return {
    131136        'form': FormRenderer(form)
Note: See TracChangeset for help on using the changeset viewer.