Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
8b6568f4
Commit
8b6568f4
authored
Nov 05, 2013
by
Julia Hansbrough
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed duplicate code
parent
0d1dc8e2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
15 deletions
+0
-15
common/djangoapps/terrain/course_helpers.py
+0
-15
No files found.
common/djangoapps/terrain/course_helpers.py
View file @
8b6568f4
...
...
@@ -66,21 +66,6 @@ def add_to_course_staff(username, course_num):
@world.absorb
def
add_to_course_staff
(
username
,
course_num
):
"""
Add the user with `username` to the course staff group
for `course_num`.
"""
# Based on code in lms/djangoapps/courseware/access.py
group_name
=
"instructor_{}"
.
format
(
course_num
)
group
,
_
=
Group
.
objects
.
get_or_create
(
name
=
group_name
)
group
.
save
()
user
=
User
.
objects
.
get
(
username
=
username
)
user
.
groups
.
add
(
group
)
@world.absorb
def
clear_courses
():
# Flush and initialize the module store
# Note that if your test module gets in some weird state
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment