Private
Public Access
Replaces Feed.fetch_interval_minutes with a single admin-editable SiteSettings.fetch_interval_minutes (apps.core), following the same singleton-row pattern as accounts.SetupLock. Per-feed error backoff is unchanged — only the configured baseline interval is now shared across every feed, loaded once per poll_due_feeds run rather than queried per feed. EVECTION_MIN_FETCH_INTERVAL_MINUTES keeps working as the floor underneath it. SiteSettings is registered in Django admin as a singleton: "Add" is only offered when no row exists yet, and delete is always refused. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
34 lines
980 B
Python
34 lines
980 B
Python
# Generated by Django 5.2.18 on 2026-10-31 18:56
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
initial = True
|
|
|
|
dependencies = []
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name="SiteSettings",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.PositiveSmallIntegerField(default=1, primary_key=True, serialize=False),
|
|
),
|
|
(
|
|
"fetch_interval_minutes",
|
|
models.PositiveIntegerField(
|
|
default=60,
|
|
help_text="How often, in minutes, every feed is polled for new articles. Can't be set lower than EVECTION_MIN_FETCH_INTERVAL_MINUTES (see .env).",
|
|
),
|
|
),
|
|
],
|
|
options={
|
|
"verbose_name": "Site settings",
|
|
"verbose_name_plural": "Site settings",
|
|
},
|
|
),
|
|
]
|