diff --git a/feeds/migrations/0009_auto_20210312_0211.py b/feeds/migrations/0009_auto_20210312_0211.py new file mode 100644 index 0000000..ec38931 --- /dev/null +++ b/feeds/migrations/0009_auto_20210312_0211.py @@ -0,0 +1,18 @@ +# Generated by Django 3.1.7 on 2021-03-11 23:11 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('feeds', '0008_nerfnowfeedmoduleconfig'), + ] + + operations = [ + migrations.AlterField( + model_name='feed', + name='last_id', + field=models.JSONField(blank=True, null=True), + ), + ] diff --git a/feeds/models.py b/feeds/models.py index a75aeba..dcff7b3 100644 --- a/feeds/models.py +++ b/feeds/models.py @@ -16,7 +16,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 = YAMLField(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()