Advertisement
Guest User

Untitled

a guest
May 23rd, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.43 KB | None | 0 0
  1. authorized_fields = (
  2. 'is_liked',
  3. 'is_followed',
  4. 'is_must_have',
  5. )
  6. post_fields = {
  7. 'id',
  8. 'hash_id',
  9. 'type',
  10. 'share_url',
  11. 'description',
  12. 'template',
  13. 'likes_count',
  14. 'city__name',
  15. 'region__name',
  16. 'country',
  17. 'last_comment__is_deleted',
  18. 'last_comment__published_at',
  19. 'last_comment__text',
  20. 'last_comment__author__id',
  21. 'last_comment__author__avatar',
  22. 'last_comment__author__nickname',
  23. 'last_comment__author__is_premium',
  24. 'last_comment__author__verification_status'
  25. }
  26. creator_fields = {
  27. 'creator__id',
  28. 'creator__auth0_id',
  29. 'creator__nickname',
  30. 'creator__user__first_name',
  31. 'creator__user__last_name',
  32. 'creator__avatar',
  33. 'creator__is_premium',
  34. 'creator__verification_status',
  35. 'creator__privacy',
  36. }
  37. # TODO price in other currencies delete
  38. # TODO do not show private price
  39. # TODO Calculate end at
  40. product_fields = {
  41. 'product__purchase_type',
  42. 'product__price',
  43. 'product__currency',
  44. 'product__brand__name',
  45. 'product__subcategory__name',
  46. 'product__subcategory__parent__name',
  47. 'product__mall__name',
  48. 'product__mall__city__name',
  49. 'product__shop__name',
  50. 'product__shop__city__name',
  51. 'product__shop__city__region__name',
  52. 'product__shop__city__region__country',
  53. 'product__online_shop__name',
  54. 'product__online_shop__url',
  55. 'product__tag',
  56. 'product__is_public_price',
  57. }
  58. auction_fields = {
  59. 'auction__id',
  60. 'auction__type',
  61. 'auction__status',
  62. 'auction__min_price',
  63. 'auction__buy_now_price',
  64. 'auction__currency',
  65. 'auction__duration_days',
  66. 'auction__item_condition',
  67. 'auction__highest_bid__amount',
  68. 'annotate_bidders_count',
  69. 'auction__start_at', # Consider adding end at
  70. 'auction__success_info__winner',
  71. 'auction__success_info__type',
  72. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement