Complete set of todo strings on webpage

This commit is contained in:
Philip Sargent 2023-02-02 16:15:13 +00:00
parent 13f0c6f988
commit 25e00e02b7

View File

@ -41,33 +41,44 @@ def todos(request, module):
"""produces todo text from module
We could automate this to find all those strings automatically
"""
from troggle.core.TESTS.tests import todo as tests
from troggle.core.forms import todo as forms
from troggle.core.middleware import todo as middleware
from troggle.core.models.caves import todo as modelcaves
from troggle.core.TESTS.tests import todo as tests
from troggle.core.models.logbooks import todo as modellogbooks
from troggle.core.views.caves import todo as viewcaves
from troggle.core.views.drawings import todo as viewdrawings
from troggle.core.views.logbooks import todo as viewlogbooks
from troggle.core.views.other import todo as viewother
from troggle.core.views.survex import todo as viewsurvex
from troggle.core.views.uploads import todo as viewuploads
from troggle.core.views.wallets_edit import todo as viewwallets_edit
from troggle.parsers.caves import todo as parserscaves
from troggle.parsers.drawings import todo as parsersdrawings
from troggle.parsers.locations import todo as parserslocations
from troggle.parsers.logbooks import todo as parserslogbooks
from troggle.parsers.survex import todo as parserssurvex
from troggle.urls import todo as todourls
tododict = {
"views/other": todo,
"tests": tests,
"views/logbooks": viewlogbooks,
"views/survex": viewsurvex,
"forms": forms,
"middleware": middleware,
"models/caves": modelcaves,
"models/logbooks": modellogbooks,
"views/caves": viewcaves,
"views/drawings": viewdrawings,
"views/logbooks": viewlogbooks,
"views/other": todo,
"views/survex": viewsurvex,
"views/uploads": viewuploads,
"views/wallets_edit": viewwallets_edit,
"parsers/caves": parserscaves,
"parsers/logbooks": parserslogbooks,
"parsers/drawings": parsersdrawings,
"parsers/locations": parserslocations,
"parsers/logbooks": parserslogbooks,
"parsers/survex": parserssurvex,
"core/models/caves": modelcaves,
"core/middleware": middleware,
"core/forms": forms,
"urls": todourls,
}
return render(request, "core/todos.html", {"tododict": tododict})