django-jet icon indicating copy to clipboard operation
django-jet copied to clipboard

__init__() missing 1 required positional argument: 'search_help_text'

Open AlexFoxalt opened this issue 2 years ago • 8 comments

Hello all, i have an issue with entering to edit model instance menu.

DeepinScreenshot_select-area_20220322112126

Maybe someone had the same issue?

AlexFoxalt avatar Mar 22 '22 09:03 AlexFoxalt

I am also facing the same issue. Do you have any solution for that?

Rishubh03 avatar Mar 29 '22 00:03 Rishubh03

I am also facing the same issue. Do you have any solution for that?

Still nope. I can offer a few solutions, but they are quite radical:

  1. Downgrade to Django 3
  2. Get rid of JET and select smth else

AlexFoxalt avatar Mar 29 '22 06:03 AlexFoxalt

I don't think this repository is maintained anymore. I tried to fix this issue a while ago and it's working now on django 4.0.1 . here is the link

Mojtaba-saf avatar Mar 30 '22 16:03 Mojtaba-saf

@Mojtaba-saf I installed your version with pip install https://github.com/Mojtaba-saf/django-jet/archive/dev.zip and I still get the problem with search_help_text. Did your fix work for you?

ZiggerZZ avatar Apr 28 '22 16:04 ZiggerZZ

My bad, I had Django 3. I upgraded to Django 4.0.1 and it works fine now!

ZiggerZZ avatar Apr 28 '22 17:04 ZiggerZZ

Btw just stumbled upon https://github.com/assem-ch/django-jet-reboot

ZiggerZZ avatar Apr 28 '22 21:04 ZiggerZZ

jet/utils.py file change

search_help_text = model_admin.search_help_text change_list_args = [ request, model, list_display, list_display_links, list_filter, model_admin.date_hierarchy, search_fields, list_select_related, model_admin.list_per_page, model_admin.list_max_show_all, model_admin.list_editable, model_admin] model_admin.list_editable, model_admin,search_help_text]

nizamializadeh avatar May 24 '22 18:05 nizamializadeh

model_admin.list_editable, model_admin,search_help_text

I've just applied your solution and received below error NameError: name 'model_admin' is not defined

would u please help me?

bhx98 avatar Jun 16 '23 11:06 bhx98