code: def set_img_path(instance, filename):
      
      upload_path = '/'.join(
          ['img', instance._meta.app_label, str(now.year), str(now.month), filename]
      )
      return upload_path
docs: Sets upload_to dynamically