Private
Public Access
Subscription editing was a real gap: there was no way to rename a feed's display title, move it between folders, or create a folder at all outside OPML import. Added an edit page (apps/feeds/views.py:edit_subscription, EditSubscriptionForm) reachable from the subscriptions list. Added feed-level tagging via a new SubscriptionTag model (apps/articles/ models.py), mirroring the existing ArticleTag — tag a whole feed on its edit page, and every one of its articles surfaces under that tag in the stream alongside individually-tagged articles (apps.reader.views._apply_ scope now matches either). Renamed AddTagToArticleForm to AddTagForm since it's shared by both now. The stream also now remembers the last filter (unread/all/starred/saved) in the session instead of always defaulting to "unread" when a sidebar feed/folder/tag link omits ?filter= — sidebar links no longer force ?filter=all, letting the remembered choice apply. Verified end to end against a running dev server: editing a subscription's title/folder, creating a folder inline, tagging a feed and seeing its articles appear under that tag, and the remembered-filter behavior across requests with no ?filter= param. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
38 lines
1.1 KiB
Python
38 lines
1.1 KiB
Python
from django.urls import path
|
|
|
|
from . import views
|
|
|
|
app_name = "feeds"
|
|
|
|
urlpatterns = [
|
|
path("feeds/add/", views.add_feed, name="add_feed"),
|
|
path("subscriptions/", views.subscription_list, name="subscription_list"),
|
|
path(
|
|
"subscriptions/<int:subscription_id>/edit/",
|
|
views.edit_subscription,
|
|
name="edit_subscription",
|
|
),
|
|
path(
|
|
"subscriptions/<int:subscription_id>/tags/",
|
|
views.subscription_tags_partial,
|
|
name="subscription_tags_partial",
|
|
),
|
|
path(
|
|
"subscriptions/<int:subscription_id>/tags/add/",
|
|
views.add_tag_to_subscription,
|
|
name="add_tag_to_subscription",
|
|
),
|
|
path(
|
|
"subscriptions/<int:subscription_id>/tags/<int:tag_id>/remove/",
|
|
views.remove_tag_from_subscription,
|
|
name="remove_tag_from_subscription",
|
|
),
|
|
path(
|
|
"subscriptions/<int:subscription_id>/unsubscribe/",
|
|
views.unsubscribe,
|
|
name="unsubscribe",
|
|
),
|
|
path("subscriptions/import/", views.import_opml_view, name="import_opml"),
|
|
path("subscriptions/export/", views.export_opml_view, name="export_opml"),
|
|
]
|