Commit 1ea6ce5d authored by Daniel W Bond's avatar Daniel W Bond

Merge branch 'master' into blueridge

parents bc049b35 ce54a5c7
Pipeline #1389 passed with stage
in 3 minutes and 25 seconds
......@@ -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)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment