Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
course-discovery
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
course-discovery
Commits
b03a1a86
Commit
b03a1a86
authored
Feb 20, 2018
by
Awais Jibran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
addressing comments
parent
b99d4b5c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
course_discovery/apps/publisher/forms.py
+3
-2
course_discovery/apps/publisher/tests/test_views.py
+0
-1
No files found.
course_discovery/apps/publisher/forms.py
View file @
b03a1a86
...
...
@@ -464,10 +464,11 @@ class SeatForm(BaseForm):
if
not
course_run
:
return
all_course_run_seats
=
course_run
.
seats
.
all
()
seats_data_is_bogus
=
all_course_run_seats
.
count
()
>
2
all_course_run_seats_count
=
all_course_run_seats
.
count
()
seats_data_is_bogus
=
all_course_run_seats_count
>
2
if
seats_data_is_bogus
:
logger
.
info
(
'Removing bogus course run [
%
d] seats [
%
d]'
,
course_run
.
id
,
all_course_run_seats
.
count
())
all_course_run_seats
.
delete
()
logger
.
info
(
'Removed bogus course run [
%
d] seats [
%
d]'
,
course_run
.
id
,
all_course_run_seats_count
)
class
CourseEntitlementForm
(
BaseForm
):
...
...
course_discovery/apps/publisher/tests/test_views.py
View file @
b03a1a86
...
...
@@ -3117,7 +3117,6 @@ class CourseRunEditViewTests(SiteMixin, TestCase):
self
.
assertContains
(
response
,
'CERTIFICATE TYPE AND PRICE'
,
status_code
=
200
)
def
login_with_course_user_role
(
self
,
course_run
,
role
=
PublisherUserRole
.
CourseTeam
):
self
.
client
.
logout
()
user
=
course_run
.
course
.
course_user_roles
.
get
(
role
=
role
)
.
user
self
.
client
.
login
(
username
=
user
.
username
,
password
=
USER_PASSWORD
)
return
user
...
...
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