old_contents: from django.contrib import admin
  from .models import Authorization
  
  
  @admin.register(Authorization)
  class ApplicationAdmin(admin.ModelAdmin):
  
      def scope_list(self, app):
          return ', '.join(app.scopes)
  
      list_display = ['user', 'application', 'scope_list']
  
      list_select_related = ['user', 'application']
  
      readonly_fields = ['user']
  
      fields = ['user', 'application', 'scopes', 'code']
  
new_contents: from django.contrib import admin
  from .models import Authorization
  
  
  def scope_list(app):
      """
      >>> scope_list(Authorization(scopes=['a', 'b', 'c']))
      'a, b, c'
      """
      return ', '.join(app.scopes)
  
  
  @admin.register(Authorization)
  class ApplicationAdmin(admin.ModelAdmin):
  
      list_display = ['user', 'application', scope_list]
  
      list_select_related = ['user', 'application']
  
      readonly_fields = ['user']
  
      fields = ['user', 'application', 'scopes', 'code']
  
subject: Add test for Authorization admin section