ORM puzzle

Report a typo

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!

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()
              
___

Create a free account to access the full topic