Commit a744023
Usage requirements refactor (#749)
* Added CoursePermission and CourseType
* Implemented cource permission class
* migrated data
* Updated views and admin to use new permission
* fixed bug with auth requirement
* added coursepermission to admin
* Updated course page
* Updated form ui for courses
* Made 3dpr permission automatic
* updated url tests
* update machine tests
* updated reservation test
* updated machine and reservation tests
* code cleanup
* Added translations
* Fixed api bug
* Removed print
* fixed line endings hopefully
* Fixed naming in migrations
* Fixed usage hint and translation typo
* fixed some codeclimate cleanup
* removed some whitespace
* Added changes to unreleased in changelog
* Made some fixes according to review comments
* Removed unused if statement
* Added if statement to prevent when a user has no registered course
* updated more code according to feedback
* removed whitespace
* i removed one too many whitespace lines, whoops
* fixed bug where course list used old get_permission_names method
* removed atomic flag
* merged migrations
* Switched to using enum instead of "3DPR" and similar strings
---------
Co-authored-by: Anders <6058745+ddabble@users.noreply.github.com>
Co-authored-by: Sigrid <55406589+sigtheidiot@users.noreply.github.com>
Co-authored-by: Gunvor4 <114504373+Gunvor4@users.noreply.github.com>1 parent 36e489e commit a744023
File tree
15 files changed
+338
-225
lines changed- src
- checkin
- locale/nb/LC_MESSAGES
- make_queue
- forms
- migrations
- models
- templates/make_queue/course
- tests
- models
- views
15 files changed
+338
-225
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
107 | 108 | | |
108 | 109 | | |
109 | 110 | | |
110 | | - | |
111 | | - | |
112 | | - | |
| 111 | + | |
113 | 112 | | |
114 | 113 | | |
115 | 114 | | |
| |||
119 | 118 | | |
120 | 119 | | |
121 | 120 | | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
138 | 133 | | |
139 | 134 | | |
140 | 135 | | |
| |||
Binary file not shown.
0 commit comments