Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Allow the dates of a workout session to be editable

Roland Geider7011db379f0c
diff --git a/docs/changelog.rst b/docs/changelog.rst
index cb32d5b8d..25dcb5206 100644
--- a/docs/changelog.rst
+++ b/docs/changelog.rst
@@ -34,8 +34,9 @@ Upgrade steps from 1.9:
🐛 Bug Fixes:
-* `#368`_, `#426`_ (thanks `@austin-leung`_), `#499`_, `#505`_, `#504`_, `#511`_, `#516`_,
- `#522`_, `#554`_ and `#560`_ (thanks `@sandilsranasinghe`_), `#564`_, `#565`_
+* `#368`_, `#379`_, `#426`_ (thanks `@austin-leung`_), `#499`_, `#505`_, `#504`_,
+ `#511`_, `#516`_, `#522`_, `#554`_ and `#560`_ (thanks `@sandilsranasinghe`_),
+ `#564`_, `#565`_
🧰 Maintenance:
@@ -61,8 +62,9 @@ Upgrade steps from 1.9:
.. _#246: https://github.com/wger-project/wger/issues/246
.. _#284: https://github.com/wger-project/wger/issues/284
.. _#337: https://github.com/wger-project/wger/issues/337
-.. _#368: https://github.com/wger-project/wger/issues/368
.. _#340: https://github.com/wger-project/wger/issues/340
+.. _#368: https://github.com/wger-project/wger/issues/368
+.. _#379: https://github.com/wger-project/wger/issues/379
.. _#411: https://github.com/wger-project/wger/issues/411
.. _#426: https://github.com/wger-project/wger/issues/426
.. _#450: https://github.com/wger-project/wger/issues/450
diff --git a/wger/manager/api/views.py b/wger/manager/api/views.py
index f0d244b5c..f606581cf 100644
--- a/wger/manager/api/views.py
+++ b/wger/manager/api/views.py
@@ -106,8 +106,7 @@ class WorkoutSessionViewSet(WgerOwnerObjectModelViewSet):
"""
Set the owner
"""
- today = datetime.date.today()
- serializer.save(date=today, user=self.request.user)
+ serializer.save(user=self.request.user)
def get_owner_objects(self):
"""