mirror of
https://github.com/jazzband/django-dbtemplates.git
synced 2026-05-10 00:24:49 +00:00
Also reverse the logic of the database lookup. First check if there is site-specific template in the database and only if that fails try to load the global template. This should cut down the number of database queries that need to be executed, especially in a loop that includes a given template that does not exist in the database. Signed-off-by: Stephan Peijnik <spe@anexia.at> |
||
|---|---|---|
| .. | ||
| locale | ||
| management | ||
| migrations | ||
| static/dbtemplates | ||
| utils | ||
| __init__.py | ||
| admin.py | ||
| conf.py | ||
| loader.py | ||
| models.py | ||
| tests.py | ||