Commits

Anonymous committed c05e43c

don't show the search index in admin

  • Participants
  • Parent commits b9174a2

Comments (0)

Files changed (1)

File search/core.py

     def __init__(self, search_manager, *args, **kwargs):
         self.search_manager = search_manager
         kwargs['field_type'] = models.CharField(max_length=500)
+        kwargs['editable'] = False
         super(IndexField, self).__init__(*args, **kwargs)
 
     def pre_save(self, model_instance, add):