title: Wagtail ModelAdmin read only
body: <p>Using Wagtails Modeladmin: </p>
  
  <p><strong>Is there any way to disable edit &amp; delete options leaving only the inspect view?</strong></p>
  
  <p>A possible approach that I can think of, is extending the template, removing the edit &amp; delete buttons and then somehow disable the edit and delete view. </p>
  
  <p>Is there any cleaner approach?</p>
  
  <hr>
  
  <p>EDIT: Thanks to Loic answer I could figure out. </p>
  
  <p>The <code>PermissionHelper</code> <a href="https://github.com/wagtail/wagtail/blob/0e9c255b034ce4bdef5b265021833790fd813ed9/wagtail/contrib/modeladmin/helpers.py#L157" rel="noreferrer">source code</a> was also very helpful to figure out the correct method to override.</p>
  
  <p><strong>Complete answer for only showing inspect view</strong></p>
  
  <pre><code>class ValidationPermissionHelper(PermissionHelper):
      def user_can_list(self, user):
          return True  
      def user_can_create(self, user):
          return False
      def user_can_edit_obj(self, user, obj):
          return False
      def user_can_delete_obj(self, user, obj):
          return False
  
  class ValidationAdmin(ModelAdmin):
      model = Validation
      permission_helper_class = ValidationPermissionHelper
      inspect_view_enabled = True
      [...]
  </code></pre>