Permalink
Browse files

license display

  • Loading branch information...
1 parent 79746eb commit f2ea769f6ff00775a24a9bb03e0dde91d2479463 Josh Levinger committed Nov 23, 2011
Showing with 2 additions and 1 deletion.
  1. +1 −0 mediacurate/models.py
  2. +1 −1 mediacurate/templates/view.html
View
@@ -37,6 +37,7 @@ def get_absolute_url(self):
('CC','Creative Commons'),
('NONE','No restrictions'),
('PROP','Proprietary, no reuse allowed'),
+ ('youtube','Standard Youtube'),
('UNK','Unknown'),
)
@@ -58,7 +58,7 @@ <h1 id="mediatitle">
<div>
<span class="label">Location:</span>
<a href="/search?location={{media.location.name|urlencode}}">{{media.location}}</a>
- {% if media.license != "unknown"%}<br><span class="label">License:</span>{{media.get_license_display}}{%endif%}
+ {% if media.license and media.license != "UNK"%}<br><span class="label">License:</span>{{media.get_license_display}}{%endif%}
<div id="flags">
<a href="/flag/{{media.id}}/" class="flag">Flag</a>
</div> </div>

0 comments on commit f2ea769

Please sign in to comment.