text: from bitfield import BitField
  from bitfield.forms import BitFieldCheckboxSelectMultiple
  from django.contrib import admin
  from .models import Token
  
  
  class TokenAdmin(admin.ModelAdmin):
      list_display = ('key', 'created')
      fields = ('scopes',)
      ordering = ('-created',)
      formfield_overrides = {
          BitField: {'widget': BitFieldCheckboxSelectMultiple},
      }
  
  
  admin.site.register(Token, TokenAdmin)
  