Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
a06c1a4b
Commit
a06c1a4b
authored
12 years ago
by
Calen Pennington
Browse files
Options
Downloads
Patches
Plain Diff
Fix warnings to actually use correct format for string interpolation
parent
deddd40c
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lms/djangoapps/django_comment_client/models.py
+1
-1
1 addition, 1 deletion
lms/djangoapps/django_comment_client/models.py
lms/djangoapps/licenses/models.py
+1
-1
1 addition, 1 deletion
lms/djangoapps/licenses/models.py
with
2 additions
and
2 deletions
lms/djangoapps/django_comment_client/models.py
+
1
−
1
View file @
a06c1a4b
...
...
@@ -38,7 +38,7 @@ class Role(models.Model):
def
inherit_permissions
(
self
,
role
):
# TODO the name of this method is a little bit confusing,
# since it's one-off and doesn't handle inheritance later
if
role
.
course_id
and
role
.
course_id
!=
self
.
course_id
:
logging
.
warning
(
"
{0}
cannot inherit permissions from
{1}
due to course_id inconsistency
"
,
\
logging
.
warning
(
"
%s
cannot inherit permissions from
%s
due to course_id inconsistency
"
,
\
self
,
role
)
for
per
in
role
.
permissions
.
all
():
self
.
add_permission
(
per
)
...
...
This diff is collapsed.
Click to expand it.
lms/djangoapps/licenses/models.py
+
1
−
1
View file @
a06c1a4b
...
...
@@ -73,7 +73,7 @@ def _create_license(user, software):
license
.
save
()
except
IndexError
:
# there are no free licenses
log
.
error
(
'
No serial numbers available for
{0}
'
,
software
)
log
.
error
(
'
No serial numbers available for
%s
'
,
software
)
license
=
None
# TODO [rocha]look if someone has unenrolled from the class
# and already has a serial number
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment