  
  
  class Ntile(Func):
      function = 'NTILE'
      name = 'Ntile'
      output_field = IntegerField()
      window_compatible = True
  
      def __init__(self, num_buckets=1, **extra):
          if num_buckets <= 0:
 
</s> remove     name = 'NthValue'
 </s> add  </s> remove     name = 'RowNumber'
 </s> add  </s> remove     name = 'Rank'
 </s> add  </s> remove     name = 'DenseRank'
 </s> add  </s> remove     name = 'PercentRank'
 </s> add 
  
  
  class Ntile(Func):
      function = 'NTILE'

      output_field = IntegerField()
      window_compatible = True
  
      def __init__(self, num_buckets=1, **extra):
          if num_buckets <= 0:
keep keep keep keep replace keep keep keep keep keep
 Refs #26608 -- Removed unneeded name attribute in window functions. 
django/db/models/functions/window.py