Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
roomlist
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
23
Issues
23
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SRCT
roomlist
Commits
1ea6ce5d
Commit
1ea6ce5d
authored
Jun 16, 2017
by
Daniel W Bond
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into blueridge
parents
bc049b35
ce54a5c7
Pipeline
#1389
passed with stage
in 3 minutes and 25 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
roomlist/accounts/management/commands/clear_rooms.py
roomlist/accounts/management/commands/clear_rooms.py
+2
-0
No files found.
roomlist/accounts/management/commands/clear_rooms.py
View file @
1ea6ce5d
...
...
@@ -9,7 +9,9 @@ class Command(BaseCommand):
def
handle
(
self
,
*
args
,
**
kwargs
):
count
=
0
for
student
in
Student
.
objects
.
all
():
self
.
stdout
.
write
(
"Removing %s from %s."
%
(
student
,
student
.
room
))
student
.
room
=
None
student
.
save
()
count
+=
1
self
.
stdout
.
write
(
"Successfully overwrote %d student room(s)."
%
count
)
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