Revision 9a7d0680
b/snf-branding/synnefo_branding/utils.py | ||
---|---|---|
22 | 22 |
def render_to_string(template_name, dictionary=None, context_instance=None): |
23 | 23 |
if not dictionary: |
24 | 24 |
dictionary = {} |
25 |
newdict = get_branding_dict("BRANDING") |
|
26 |
newdict.update(dictionary) |
|
25 |
if isinstance(dictionary, dict): |
|
26 |
newdict = get_branding_dict("BRANDING") |
|
27 |
newdict.update(dictionary) |
|
28 |
else: |
|
29 |
newdict = dictionary |
|
27 | 30 |
return django_render_to_string(template_name, newdict, context_instance) |
Also available in: Unified diff