1
0
mirror of https://github.com/django/django.git synced 2025-11-07 07:15:35 +00:00

Added Media.__repr__().

It makes it easier to debug MediaOrderConflictWarnings
(refs #28377).
This commit is contained in:
Collin Anderson
2017-08-26 10:32:32 -04:00
committed by Tim Graham
parent 8275662a24
commit 751f7a6d9b
2 changed files with 8 additions and 0 deletions

View File

@@ -52,6 +52,9 @@ class Media:
self._css = css
self._js = js
def __repr__(self):
return 'Media(css=%r, js=%r)' % (self._css, self._js)
def __str__(self):
return self.render()