Skip to content
Snippets Groups Projects
Verified Commit d3321f06 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Add docstring for get_favicons

parent 8aa921ca
No related branches found
No related tags found
1 merge request!1Resolve "Optimise query count"
......@@ -56,6 +56,11 @@ class Favicon(models.Model):
verbose_name_plural = 'Favicons'
def get_favicons(self, update=False):
"""
Get all combinations of favicons as configured, creating mising ones.
Pass update=True to force re-generation of existing icons.
"""
# Get all combinations of favicon rels and sizes from config
query = Q()
for rel in config:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment