def formfield_for_manytomany(self, db_field, request=None, **kwargs):
     field = super(GroupTabularPermissionsAdminBase, self).formfield_for_manytomany(db_field, request, **kwargs)
     if db_field.name == 'permissions':
         field.widget = TabularPermissionsWidget(db_field.verbose_name, db_field.name in self.filter_vertical,
                                                 'permissions')
         field.help_text = ''
     return field
 def formfield_for_manytomany(self, db_field, request=None, **kwargs):
     field = super(UserTabularPermissionsMixin,
                   self).formfield_for_manytomany(db_field, request,
                                                  **kwargs)
     if db_field.name == 'user_permissions':
         field.widget = TabularPermissionsWidget(
             db_field.verbose_name, db_field.name in self.filter_vertical)
         field.help_text = ''
     return field