tables.py 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. import django_tables2 as tables
  2. from webservice_running.models import *
  3. from webservice_running.models import OrdersLocal
  4. class OrderList(tables.Table):
  5. id = tables.Column(attrs={"td":{"width":"5%"}})
  6. name_order = tables.Column(verbose_name=('Экскурсия'))
  7. price = tables.Column(verbose_name=('Цена'))
  8. class Meta:
  9. model = OrdersLocal
  10. attrs = {"class": "table table-layout-fixed"}
  11. exclude = ('rating_id',
  12. 'resource_id',
  13. 'order_synced',
  14. 'payment_transaction_id',
  15. 'attempts',
  16. 'order_place_type',
  17. 'order_place_start',
  18. #'is_with_payment_document',
  19. #'asap',
  20. 'comment',
  21. 'guide_type',
  22. 'numb_of_people',
  23. #'due_date',
  24. 'is_global',
  25. 'is_visible',
  26. 'place_start',
  27. 'place_end',
  28. 'movement_way',
  29. 'discription')