AG
# app itself
WHEELIO = "wheelio"
ROLLIE = "rollie"
SCRATCHY = "scratchy"
app_types = (
(WHEELIO, "Wheelio"),
(ROLLIE, "Rollie"),
(SCRATCHY, "Scratchy"),
)
app_type = models.CharField(max_length=64, choices=app_types)
Size: a a a
AG
# app itself
WHEELIO = "wheelio"
ROLLIE = "rollie"
SCRATCHY = "scratchy"
app_types = (
(WHEELIO, "Wheelio"),
(ROLLIE, "Rollie"),
(SCRATCHY, "Scratchy"),
)
app_type = models.CharField(max_length=64, choices=app_types)
DO
ПА
T
T
ПА
RC
T
DO
{'app_type': ['wheelio'], 'app': ...
DO
ПА
T
AG
DO
resp = requests.post(request_url, cookies=cookies, data={"app_type": "wheelio"})- вот так делаю запрос
ПА
AG
resp = requests.post(request_url, cookies=cookies, data={"app_type": "wheelio"})- вот так делаю запрос
T
DO
class CampaignSerializer(serializers.ModelSerializer):
app = AppSerializer()
class Meta:
model = Campaign
fields = (
'shop',
'campaign_status',
'cookie_expiration',
'schedule_type',
'schedule_start_date',
'schedule_end_date',
'url_filters',
'email_segmentations',
'app_type',
'app',
'triggers',
'displayed',
'emails_collected',
'rejected_after_spin',
'allow_duplicate_emails',
'auto_inject_coupon',
)
read_only_fields = (
'shop',
)
DO
ПА