-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have error in sample_erp tutorial document! #31
Comments
Got hit with the exact same issue. I'm new to Django and RA framework too but I suspect it might be something to do with the addition of search_help_text in Django 4.1 get_changelist_instance() has the positional argument self.search_help_text on line 848 (django/contrib/admin/options.py) which is not reflected in the RaChangeList() class. I found that adding search_help_text to the end of the positional arguments on line 83 and 87 of ra/admin/admin.py cleared the error (added it to both init and super). As I've said I'm new to this too so I have no clue yet why (or if) this only seems to affect the sample_erp tutorial Hopefully the whole RA framework will be updated to work with Django 4 but adding the argument above seemed to workaround this specific error. |
A new version is released with this, and much more, fixed and added |
I also have a problem with the sample_erp In the models.py file from django.db import models What is this from erp_framework.base.registry import register_doc_type There is no registry.py file in the base folder. Can you help on this? |
Hello , Thanks for reporting @ShopCartz You can skip the doc type registry, i will post here once i push the documentation updates. Let me know if you face other issues . |
Similar issue with Docs. I've commented out the registry bit but when I attempt makemigrations I get. from erp_framework.admin.admin import erp_framework_site, EntityAdmin #, TransactionAdmin, TransactionItemAdmin This in admin.py Django 4.2 Python 3.10 Really looking forward to getting ERP going. Looks awesome. |
Greetings
I am a newbie in Python.
I followed the guide,
when I click on keys: [Clients][Expense][Products][Sales]
I have a error occurs!!
OR Key in left side .
Although all the data I entered in sample_erp was saved in admin.
All the add buttons work fine and then the error message comes.
`
TypeError at /sample_erp/expense/
`
, line 343, in wrapperG:\Ra-system_ERP\ERP_APP\env\lib\site-packages\ra\admin\admin.py
Local vars
You’re seeing this error because you have
DEBUG = True
in your Django settings file. Change that toFalse
, and Django will display a standard page generated by the handler for this status code.`
G:\Ra-system_ERP\ERP_APP\env\lib\site-packages\ra\admin\admin.py
, line 324, in changelist_viewLocal vars
`
`
G:\Ra-system_ERP\ERP_APP\env\lib\site-packages\reversion\admin.py
, line 235, in changelist_viewLocal vars
`
The text was updated successfully, but these errors were encountered: