old_contents: from tastypie import fields
  from tastypie.resources import ModelResource
  from tastypie.resources import ALL, ALL_WITH_RELATIONS
  
  from people.api import ArtistResource
  from .models import Promotion, Student
  
  class PromotionResource(ModelResource):
      class Meta:
          queryset = Promotion.objects.all()
          resource_name = 'school/promotion'
  
  class StudentResource(ArtistResource):
      class Meta:
          queryset = Student.objects.all()
          resource_name = 'school/student'
          filtering = {
              'user': ALL_WITH_RELATIONS,
              'promotion': ALL,
          }
  
      promotion = fields.ForeignKey(PromotionResource, 'promotion')
  
new_contents: from tastypie import fields
  from tastypie.resources import ModelResource
  from tastypie.resources import ALL, ALL_WITH_RELATIONS
  
  from people.api import ArtistResource
  from .models import Promotion, Student
  
  class PromotionResource(ModelResource):
      class Meta:
          queryset = Promotion.objects.all()
          resource_name = 'school/promotion'
          ordering = ['starting_year']
  
  class StudentResource(ArtistResource):
      class Meta:
          queryset = Student.objects.all()
          resource_name = 'school/student'
          filtering = {
              'user': ALL_WITH_RELATIONS,
              'promotion': ALL,
          }
  
      promotion = fields.ForeignKey(PromotionResource, 'promotion')
  
subject: allow ordering