def url(self): try: return super().url except ValueError: from django.contrib.staticfiles.storage import staticfiles_storage return staticfiles_storage.url(self.field.static_image_path)