diff --git a/rowers/models.py b/rowers/models.py index c500576e..f8e75a01 100644 --- a/rowers/models.py +++ b/rowers/models.py @@ -711,6 +711,8 @@ class BasePlannedSessionFormSet(BaseFormSet): # Check if workout is owned by this user def checkworkoutuser(user,workout): + if user.is_anonymous(): + return False try: r = Rower.objects.get(user=user) teams = workout.team.all() diff --git a/rowers/templates/comparisonchart2.html b/rowers/templates/comparisonchart2.html index a07b41bd..1fd119fe 100644 --- a/rowers/templates/comparisonchart2.html +++ b/rowers/templates/comparisonchart2.html @@ -50,25 +50,16 @@ -
-
- Swap Workouts -
-
- Edit Workout -
-
- Advanced Edit -
-
-

 

+
+

+ Swap Workouts +

+