We created the Student model in order to populate our database with data containing information about all our students. Somehow the lines got all mixed up. Arrange the lines of code below, in a way that they form the valid Student model. The model fields must be in alphabetical order!
Object modification with ORM
ORM puzzle
Report a typo
Reorder lines using drag or arrows. Adjust indentation with left buttons
name = models.CharField(max_length=100)
school = models.CharField(max_length=100)
class Student(models.Model):
all_students = Student.objects.ordered_by('school')
from django.db import models
address = models.TextField()
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.