code: def get_disk_quota(username, machine_name=None):
      
  
      try:
          ua = Account.objects.get(
              username=username,
              date_deleted__isnull=True)
      except Account.DoesNotExist:
          return 'Account not found'
  
      result = ua.get_disk_quota()
      if result is None:
          return False
  
      return result * 1048576
docs: Returns disk quota for username in KB