def get_method_list():
    '''
    Include manual methods by default
    '''
    methods = [str(_('Cash')),str(_('Check')),str(_('Bank/Debit Card')),str(_('Other'))]
    methods += ExpenseItem.objects.order_by().values_list('paymentMethod',flat=True).distinct()
    methods += RevenueItem.objects.order_by().values_list('paymentMethod',flat=True).distinct()
    methods_list = list(set(methods))

    if None in methods_list:
        methods_list.remove(None)

    return methods_list
def get_method_list ( ) : methods = [ str ( _ ( 'Cash' ) ) , str ( _ ( 'Check' ) ) , str ( _ ( 'Bank/Debit Card' ) ) , str ( _ ( 'Other' ) ) ] methods += ExpenseItem . objects . order_by ( ) . values_list ( 'paymentMethod' , flat = True ) . distinct ( ) methods += RevenueItem . objects . order_by ( ) . values_list ( 'paymentMethod' , flat = True ) . distinct ( ) methods_list = list ( set ( methods ) ) if None in methods_list : methods_list . remove ( None ) return methods_list
Include manual methods by default