@@ -81,15 +81,15 @@ def get_queryset(self, request):
8181 ]
8282 extra = 0
8383
84- def has_file (self , cvc_obj ):
85- return cvc_obj .media .has_file
84+ def has_file (self , cvm_obj ):
85+ return cvm_obj .media .has_file
8686
87- def rendered_data (self , cvc_obj ):
88- return media_preview (cvc_obj )
87+ def rendered_data (self , cvm_obj ):
88+ return media_preview (cvm_obj )
8989
9090 @admin .display (description = "Size" )
91- def format_size (self , cvc_obj ):
92- return filesizeformat (cvc_obj .media .size )
91+ def format_size (self , cvm_obj ):
92+ return filesizeformat (cvm_obj .media .size )
9393
9494
9595@admin .register (ComponentVersion )
@@ -134,11 +134,11 @@ def format_text_for_admin_display(text: str) -> SafeText:
134134 )
135135
136136
137- def media_preview (cvc_obj : ComponentVersionMedia ) -> SafeText :
137+ def media_preview (cvm_obj : ComponentVersionMedia ) -> SafeText :
138138 """
139- Get the HTML to display a preview of the given ComponentVersionContent
139+ Get the HTML to display a preview of the given ComponentVersionMedia
140140 """
141- media_obj = cvc_obj .media
141+ media_obj = cvm_obj .media
142142
143143 if media_obj .media_type .type == "image" :
144144 # This base64 encoding looks really goofy and is bad for performance,
0 commit comments