Fix iteritems usage on python 3
authorChristopher Allan Webber <cwebber@dustycloud.org>
Tue, 16 Sep 2014 20:07:33 +0000 (15:07 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Tue, 16 Sep 2014 20:07:33 +0000 (15:07 -0500)
This commit sponsored by Ben (Free Software Melbourne) Finney.  Thanks!

mediagoblin/edit/views.py

index 59d851f6b58e36595f75bc369156808d49f7a968..7359f520c4109332a0f4c6774da5332a7d998a60 100644 (file)
@@ -455,7 +455,7 @@ def edit_metadata(request, media):
         return redirect_obj(request, media)      
 
     if len(form.media_metadata) == 0:
-        for identifier, value in media.media_metadata.iteritems():
+        for identifier, value in six.iteritems(media.media_metadata):
             if identifier == "@context": continue
             form.media_metadata.append_entry({
                 'identifier':identifier,