Add callback migrations
This commit is contained in:
parent
6796421ba6
commit
9139b4ffdd
|
@ -0,0 +1,77 @@
|
||||||
|
# Generated by Django 4.1.2 on 2022-10-15 22:35
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('core', '0004_callback'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.RemoveField(
|
||||||
|
model_name='callback',
|
||||||
|
name='data',
|
||||||
|
),
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='callback',
|
||||||
|
name='market',
|
||||||
|
field=models.CharField(blank=True, max_length=255, null=True),
|
||||||
|
),
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='callback',
|
||||||
|
name='market_contract',
|
||||||
|
field=models.CharField(blank=True, max_length=255, null=True),
|
||||||
|
),
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='callback',
|
||||||
|
name='market_currency',
|
||||||
|
field=models.CharField(blank=True, max_length=255, null=True),
|
||||||
|
),
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='callback',
|
||||||
|
name='market_exchange',
|
||||||
|
field=models.CharField(blank=True, max_length=255, null=True),
|
||||||
|
),
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='callback',
|
||||||
|
name='market_item',
|
||||||
|
field=models.CharField(blank=True, max_length=255, null=True),
|
||||||
|
),
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='callback',
|
||||||
|
name='message',
|
||||||
|
field=models.CharField(blank=True, max_length=1024, null=True),
|
||||||
|
),
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='callback',
|
||||||
|
name='period',
|
||||||
|
field=models.CharField(blank=True, max_length=255, null=True),
|
||||||
|
),
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='callback',
|
||||||
|
name='timestamp_sent',
|
||||||
|
field=models.DateTimeField(blank=True, null=True),
|
||||||
|
),
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='callback',
|
||||||
|
name='timestamp_trade',
|
||||||
|
field=models.DateTimeField(blank=True, null=True),
|
||||||
|
),
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='callback',
|
||||||
|
name='title',
|
||||||
|
field=models.CharField(blank=True, max_length=1024, null=True),
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='hook',
|
||||||
|
name='hook',
|
||||||
|
field=models.CharField(max_length=255, unique=True),
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='hook',
|
||||||
|
name='name',
|
||||||
|
field=models.CharField(blank=True, max_length=1024, null=True, unique=True),
|
||||||
|
),
|
||||||
|
]
|
|
@ -8,11 +8,11 @@ from django.views import View
|
||||||
from rest_framework.parsers import FormParser, JSONParser
|
from rest_framework.parsers import FormParser, JSONParser
|
||||||
from rest_framework.views import APIView
|
from rest_framework.views import APIView
|
||||||
from serde import ValidationError
|
from serde import ValidationError
|
||||||
from core.util import logs
|
|
||||||
|
|
||||||
from core.forms import HookForm
|
from core.forms import HookForm
|
||||||
from core.lib.serde import drakdoo
|
from core.lib.serde import drakdoo
|
||||||
from core.models import Callback, Hook
|
from core.models import Callback, Hook
|
||||||
|
from core.util import logs
|
||||||
|
|
||||||
log = logs.get_logger(__name__)
|
log = logs.get_logger(__name__)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue