mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-05 19:03:30 -05:00
TemplateListServices are used when we want to show the service as an additional layer of hierarchy when a user copies a template, potentially across services [^1]. Normally a TemplateFolder is given "folders" and "templates" by TemplateList [^2]; TemplateListService was doing it the other way round and getting its own instead. Using a subclass of TemplateList means we can make the approach consistent, which will support the caching approach later on, as well as simplifying how we work with templates and folders. [^1]:2e637f801f/app/main/views/templates.py (L356)[^2]:bef0382cca/app/models/template_list.py (L31-L36)