From 2e03956f1d6a1ecd7d0a20621f680b42308b9762 Mon Sep 17 00:00:00 2001 From: Kumi Date: Sun, 24 Oct 2021 17:45:23 +0200 Subject: [PATCH] Move nav sections to respective apps --- dreams/features.py | 16 ++++++++++++++++ {frontend => mood}/features.py | 13 +------------ 2 files changed, 17 insertions(+), 12 deletions(-) create mode 100644 dreams/features.py rename {frontend => mood}/features.py (58%) diff --git a/dreams/features.py b/dreams/features.py new file mode 100644 index 0000000..0cd85a0 --- /dev/null +++ b/dreams/features.py @@ -0,0 +1,16 @@ +from frontend.classes import NavSection, NavItem + +from django.urls import reverse_lazy + +dreams_section = NavSection("Dreams") + +dreams_items = { + "dreams_dream_list": NavItem("Dream List", reverse_lazy("dreams:dream_list")), + "dreams_theme_list": NavItem("Themes", reverse_lazy("dreams:theme_list")), + "dreams_notification_list": NavItem("Notifications", reverse_lazy("dreams:notification_list")) +} + +for _, item in dreams_items.items(): + dreams_section.add_item(item) + +NAV_SECTIONS = [dreams_section] \ No newline at end of file diff --git a/frontend/features.py b/mood/features.py similarity index 58% rename from frontend/features.py rename to mood/features.py index 32b4990..5261b76 100644 --- a/frontend/features.py +++ b/mood/features.py @@ -15,15 +15,4 @@ mood_items = { for _, item in mood_items.items(): mood_section.add_item(item) -dreams_section = NavSection("Dreams") - -dreams_items = { - "dreams_dream_list": NavItem("Dream List", reverse_lazy("dreams:dream_list")), - "dreams_theme_list": NavItem("Themes", reverse_lazy("dreams:theme_list")), - "dreams_notification_list": NavItem("Notifications", reverse_lazy("dreams:notification_list")) -} - -for _, item in dreams_items.items(): - dreams_section.add_item(item) - -NAV_SECTIONS = [mood_section, dreams_section] \ No newline at end of file +NAV_SECTIONS = [mood_section] \ No newline at end of file