Implement setting minimum feedback score
This commit is contained in:
parent
ae4e5ae964
commit
7448c361bf
|
@ -570,7 +570,7 @@ class LocalPlatformClient(ABC):
|
||||||
"track_max_amount": False,
|
"track_max_amount": False,
|
||||||
"require_trusted_by_advertiser": False,
|
"require_trusted_by_advertiser": False,
|
||||||
"online_provider": provider,
|
"online_provider": provider,
|
||||||
"require_feedback_score": 0,
|
"require_feedback_score": ad.require_feedback_score,
|
||||||
}
|
}
|
||||||
form["asset"] = asset
|
form["asset"] = asset
|
||||||
form["payment_method_details"] = ad.payment_method_details
|
form["payment_method_details"] = ad.payment_method_details
|
||||||
|
|
|
@ -177,6 +177,7 @@ class AdForm(RestrictedFormMixin, ModelForm):
|
||||||
"provider_list",
|
"provider_list",
|
||||||
# "platforms",
|
# "platforms",
|
||||||
# "aggregators",
|
# "aggregators",
|
||||||
|
"require_feedback_score",
|
||||||
"account_whitelist",
|
"account_whitelist",
|
||||||
"send_reference",
|
"send_reference",
|
||||||
"visible",
|
"visible",
|
||||||
|
@ -194,6 +195,7 @@ class AdForm(RestrictedFormMixin, ModelForm):
|
||||||
"provider_list": "List of providers to distribute ads for.",
|
"provider_list": "List of providers to distribute ads for.",
|
||||||
# "platforms": "Enabled platforms for this ad",
|
# "platforms": "Enabled platforms for this ad",
|
||||||
# "aggregators": "Enabled aggregators for this ad",
|
# "aggregators": "Enabled aggregators for this ad",
|
||||||
|
"require_feedback_score": "Mminimum feedback score for users. Set to 0 to disable.",
|
||||||
"account_whitelist": "List of account IDs to use, one per line.",
|
"account_whitelist": "List of account IDs to use, one per line.",
|
||||||
"send_reference": "Whether or not to send the reference on new trades.",
|
"send_reference": "Whether or not to send the reference on new trades.",
|
||||||
"visible": "Whether or not this ad is visible.",
|
"visible": "Whether or not this ad is visible.",
|
||||||
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
# Generated by Django 4.1.7 on 2023-04-18 07:27
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('core', '0034_transaction_requisition'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='ad',
|
||||||
|
name='require_feedback_score',
|
||||||
|
field=models.IntegerField(default=0),
|
||||||
|
),
|
||||||
|
]
|
|
@ -509,6 +509,8 @@ class Ad(models.Model):
|
||||||
|
|
||||||
payment_method_details = models.CharField(max_length=255)
|
payment_method_details = models.CharField(max_length=255)
|
||||||
|
|
||||||
|
require_feedback_score = models.IntegerField(default=0)
|
||||||
|
|
||||||
dist_list = models.TextField()
|
dist_list = models.TextField()
|
||||||
|
|
||||||
asset_list = models.ManyToManyField(Asset)
|
asset_list = models.ManyToManyField(Asset)
|
||||||
|
|
Loading…
Reference in New Issue