old_contents: from django.db import models
  
  
  class AdminProfile(models.Model):
  
      user = models.OneToOneField('osf.OSFUser', related_name='admin_profile')
  
      desk_token = models.CharField(max_length=45, blank=True)
      desk_token_secret = models.CharField(max_length=45, blank=True)
  
new_contents: from django.db import models
  
  
  class AdminProfile(models.Model):
  
      user = models.OneToOneField('osf.OSFUser', related_name='admin_profile')
  
      desk_token = models.CharField(max_length=45, blank=True)
      desk_token_secret = models.CharField(max_length=45, blank=True)
  
  
      class Meta:
          # custom permissions for use in the OSF Admin App
          permissions = (
              ('mark_spam', 'Can mark comments, projects and registrations as spam'),
              ('view_spam', 'Can view nodes, comments, and projects marked as spam'),
              ('view_metrics', 'Can view metrics on the OSF Admin app'),
              ('view_prereg', 'Can view entries for the preregistration chellenge on the admin'),
              ('administer_prereg', 'Can update, comment on, and approve entries to the prereg challenge'),
          )
  
subject: Add custom permissions to admin profile for spam, metrics, and prereg