import django_tables2 as tables
from django_tables2.utils import Accessor
from utilities.tables import BaseTable
from payments.models import Payment
from django.utils.translation import ugettext as _


class PaymentTable(BaseTable):

    id = tables.LinkColumn('payment', args=[Accessor('pk')],
                           verbose_name=_('Payment'))

    sale = tables.LinkColumn('sale', args=[Accessor('sale_id')],
                             verbose_name=_('Sale'))

    total_value = tables.Column(verbose_name=_('Total Value'))
    pay_at = tables.Column(verbose_name=_('Pay date'))

    class Meta(BaseTable.Meta):
        model = Payment
        fields = ('id', 'sale', 'total_value', 'pay_at')

a1858308be222910dce41d23d89a0aa58c05815c
<mask token>

<mask token>


class PaymentTable(BaseTable):
    <mask token>
    <mask token>
    <mask token>
    <mask token>


    class Meta(BaseTable.Meta):
        model = Payment
        fields = 'id', 'sale', 'total_value', 'pay_at'

<mask token>


class PaymentTable(BaseTable):
    id = tables.LinkColumn('payment', args=[Accessor('pk')], verbose_name=_
        ('Payment'))
    sale = tables.LinkColumn('sale', args=[Accessor('sale_id')],
        verbose_name=_('Sale'))
    total_value = tables.Column(verbose_name=_('Total Value'))
    pay_at = tables.Column(verbose_name=_('Pay date'))


    class Meta(BaseTable.Meta):
        model = Payment
        fields = 'id', 'sale', 'total_value', 'pay_at'

import django_tables2 as tables
from django_tables2.utils import Accessor
from utilities.tables import BaseTable
from payments.models import Payment
from django.utils.translation import ugettext as _


class PaymentTable(BaseTable):
    id = tables.LinkColumn('payment', args=[Accessor('pk')], verbose_name=_
        ('Payment'))
    sale = tables.LinkColumn('sale', args=[Accessor('sale_id')],
        verbose_name=_('Sale'))
    total_value = tables.Column(verbose_name=_('Total Value'))
    pay_at = tables.Column(verbose_name=_('Pay date'))


    class Meta(BaseTable.Meta):
        model = Payment
        fields = 'id', 'sale', 'total_value', 'pay_at'

import django_tables2 as tables
from django_tables2.utils import Accessor
from utilities.tables import BaseTable
from payments.models import Payment
from django.utils.translation import ugettext as _


class PaymentTable(BaseTable):

    id = tables.LinkColumn('payment', args=[Accessor('pk')],
                           verbose_name=_('Payment'))

    sale = tables.LinkColumn('sale', args=[Accessor('sale_id')],
                             verbose_name=_('Sale'))

    total_value = tables.Column(verbose_name=_('Total Value'))
    pay_at = tables.Column(verbose_name=_('Pay date'))

    class Meta(BaseTable.Meta):
        model = Payment
        fields = ('id', 'sale', 'total_value', 'pay_at')
