title: Disable custom action in Django based on some condition ( Value of some field in Model )
body: <p>Disable custom action in Django based on some condition ( Value of some field in Model) .</p>
  <p>Created a custom action to publish excel in admin panel . I want to disable the publish action once data is published and status is changed to published ( Status is field in model )</p>