Last active
July 19, 2020 15:17
-
-
Save Allwin12/2ba4cf66628634abde5836184cf7a338 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
inactive_students = Student.objects.filter(is_active=False) | |
for student in inactive_students: | |
student.is_active = True | |
student.save() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment