From 8df147fd08c24286495b7caf6a9b7496495b482a Mon Sep 17 00:00:00 2001 From: bakatrouble Date: Fri, 12 Mar 2021 02:18:24 +0300 Subject: [PATCH] fix --- feeds/migrations/0010_auto_20210312_0214.py | 19 ------------------- feeds/models.py | 2 +- 2 files changed, 1 insertion(+), 20 deletions(-) delete mode 100644 feeds/migrations/0010_auto_20210312_0214.py diff --git a/feeds/migrations/0010_auto_20210312_0214.py b/feeds/migrations/0010_auto_20210312_0214.py deleted file mode 100644 index e16dd45..0000000 --- a/feeds/migrations/0010_auto_20210312_0214.py +++ /dev/null @@ -1,19 +0,0 @@ -# Generated by Django 3.1.7 on 2021-03-11 23:14 - -from django.db import migrations -import picklefield.fields - - -class Migration(migrations.Migration): - - dependencies = [ - ('feeds', '0009_auto_20210312_0211'), - ] - - operations = [ - migrations.AlterField( - model_name='feed', - name='last_id', - field=picklefield.fields.PickledObjectField(blank=True, editable=False, null=True), - ), - ] diff --git a/feeds/models.py b/feeds/models.py index 73a76f3..425ddbf 100644 --- a/feeds/models.py +++ b/feeds/models.py @@ -17,7 +17,7 @@ class Feed(models.Model): chat_id = models.CharField(max_length=33) check_interval = models.DurationField(help_text='in seconds') last_check = models.DateTimeField(null=True, blank=True) - last_id = PickledObjectField(null=True, blank=True) + last_id = models.JSONField(null=True, blank=True) config_type = models.ForeignKey(ContentType, on_delete=models.CASCADE) config_id = models.PositiveIntegerField()