-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
166152333-story(manager-workouts): add support for macro, meso and ma…
…cro cycles - Add workout cycle fixtures in weeks and month as well days - Add workout_plan field in core_days_of_week model - Add cycle options field in manager_workout model - Add set cycle type modal link in single workout view [Delivers #166152333]
- Loading branch information
Showing
14 changed files
with
884 additions
and
291 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,202 @@ | ||
[ | ||
{ | ||
"pk": 1, | ||
"model": "core.daysofweek", | ||
"pk": 1, | ||
"model": "core.daysofweek", | ||
"fields": { | ||
"day_of_week": "Monday" | ||
"day_of_week": "Monday", | ||
"workout_plan": "day" | ||
} | ||
}, | ||
}, | ||
{ | ||
"pk": 2, | ||
"model": "core.daysofweek", | ||
"pk": 2, | ||
"model": "core.daysofweek", | ||
"fields": { | ||
"day_of_week": "Tuesday" | ||
"day_of_week": "Tuesday", | ||
"workout_plan": "day" | ||
} | ||
}, | ||
}, | ||
{ | ||
"pk": 3, | ||
"model": "core.daysofweek", | ||
"pk": 3, | ||
"model": "core.daysofweek", | ||
"fields": { | ||
"day_of_week": "Wednesday" | ||
"day_of_week": "Wednesday", | ||
"workout_plan": "day" | ||
} | ||
}, | ||
}, | ||
{ | ||
"pk": 4, | ||
"model": "core.daysofweek", | ||
"pk": 4, | ||
"model": "core.daysofweek", | ||
"fields": { | ||
"day_of_week": "Thursday" | ||
"day_of_week": "Thursday", | ||
"workout_plan": "day" | ||
} | ||
}, | ||
}, | ||
{ | ||
"pk": 5, | ||
"model": "core.daysofweek", | ||
"pk": 5, | ||
"model": "core.daysofweek", | ||
"fields": { | ||
"day_of_week": "Friday" | ||
"day_of_week": "Friday", | ||
"workout_plan": "day" | ||
} | ||
}, | ||
}, | ||
{ | ||
"pk": 6, | ||
"model": "core.daysofweek", | ||
"pk": 6, | ||
"model": "core.daysofweek", | ||
"fields": { | ||
"day_of_week": "Saturday" | ||
"day_of_week": "Saturday", | ||
"workout_plan": "day" | ||
} | ||
}, | ||
}, | ||
{ | ||
"pk": 7, | ||
"model": "core.daysofweek", | ||
"pk": 7, | ||
"model": "core.daysofweek", | ||
"fields": { | ||
"day_of_week": "Sunday" | ||
"day_of_week": "Sunday", | ||
"workout_plan": "day" | ||
} | ||
}, | ||
{ | ||
"pk": 8, | ||
"model": "core.daysofweek", | ||
"fields": { | ||
"day_of_week": "Week 1", | ||
"workout_plan": "week" | ||
} | ||
}, | ||
{ | ||
"pk": 9, | ||
"model": "core.daysofweek", | ||
"fields": { | ||
"day_of_week": "Week 2", | ||
"workout_plan": "week" | ||
} | ||
}, | ||
{ | ||
"pk": 10, | ||
"model": "core.daysofweek", | ||
"fields": { | ||
"day_of_week": "Week 3", | ||
"workout_plan": "week" | ||
} | ||
}, | ||
{ | ||
"pk": 11, | ||
"model": "core.daysofweek", | ||
"fields": { | ||
"day_of_week": "Week 4", | ||
"workout_plan": "week" | ||
} | ||
}, | ||
{ | ||
"pk": 12, | ||
"model": "core.daysofweek", | ||
"fields": { | ||
"day_of_week": "Week 5", | ||
"workout_plan": "week" | ||
} | ||
}, | ||
{ | ||
"pk": 13, | ||
"model": "core.daysofweek", | ||
"fields": { | ||
"day_of_week": "Week 6", | ||
"workout_plan": "week" | ||
} | ||
}, | ||
{ | ||
"pk": 14, | ||
"model": "core.daysofweek", | ||
"fields": { | ||
"day_of_week": "January", | ||
"workout_plan": "Month" | ||
} | ||
}, | ||
{ | ||
"pk": 15, | ||
"model": "core.daysofweek", | ||
"fields": { | ||
"day_of_week": "February", | ||
"workout_plan": "Month" | ||
} | ||
}, | ||
{ | ||
"pk": 16, | ||
"model": "core.daysofweek", | ||
"fields": { | ||
"day_of_week": "March", | ||
"workout_plan": "Month" | ||
} | ||
}, | ||
{ | ||
"pk": 17, | ||
"model": "core.daysofweek", | ||
"fields": { | ||
"day_of_week": "April", | ||
"workout_plan": "Month" | ||
} | ||
}, | ||
{ | ||
"pk": 18, | ||
"model": "core.daysofweek", | ||
"fields": { | ||
"day_of_week": "May", | ||
"workout_plan": "Month" | ||
} | ||
}, | ||
{ | ||
"pk": 17, | ||
"model": "core.daysofweek", | ||
"fields": { | ||
"day_of_week": "June", | ||
"workout_plan": "Month" | ||
} | ||
}, | ||
{ | ||
"pk": 18, | ||
"model": "core.daysofweek", | ||
"fields": { | ||
"day_of_week": "July", | ||
"workout_plan": "Month" | ||
} | ||
}, | ||
{ | ||
"pk": 19, | ||
"model": "core.daysofweek", | ||
"fields": { | ||
"day_of_week": "August", | ||
"workout_plan": "Month" | ||
} | ||
}, | ||
{ | ||
"pk": 20, | ||
"model": "core.daysofweek", | ||
"fields": { | ||
"day_of_week": "September", | ||
"workout_plan": "Month" | ||
} | ||
}, | ||
{ | ||
"pk": 21, | ||
"model": "core.daysofweek", | ||
"fields": { | ||
"day_of_week": "October", | ||
"workout_plan": "Month" | ||
} | ||
}, | ||
{ | ||
"pk": 22, | ||
"model": "core.daysofweek", | ||
"fields": { | ||
"day_of_week": "November", | ||
"workout_plan": "Month" | ||
} | ||
}, | ||
{ | ||
"pk": 23, | ||
"model": "core.daysofweek", | ||
"fields": { | ||
"day_of_week": "December", | ||
"workout_plan": "Month" | ||
} | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Generated by Django 2.2.1 on 2019-06-13 13:45 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('core', '0003_userprofile_user_can_create_users'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='daysofweek', | ||
name='workout_plan', | ||
field=models.CharField(max_length=5, null=True), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.