1. David Chambers
  2. Mango

Commits

David Chambers  committed ea8ef21

Increased forgiveness by allowing a filename to be included in a (media, (filename,)) pair using the simpler (media, filename) syntax.

  • Participants
  • Parent commits f84e86b
  • Branches default

Comments (0)

Files changed (1)

File views.py

View file
 
     context['stylesheets'] = []
     for media, filenames in CSS[1:]:
-        for filename in filenames:
+        for filename in [filenames] if isinstance(filenames, basestring) else filenames:
             stylesheet = {'media': media, 'href': CSS[0] + filename}
             context['stylesheets'].append(stylesheet)