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/
__init__() takes 14 positional arguments but 15 were given
| Request Method: |
GET |
| http://127.0.0.1:8000/sample_erp/expense/ |
|
| 4.1.1 |
|
| TypeError |
|
| init() takes 14 positional arguments but 15 were given |
|
| G:\Ra-system_ERP\ERP_APP\env\lib\site-packages\django\contrib\admin\options.py, line 834, in get_changelist_instance |
|
| ra.admin.admin.changelist_view |
|
| G:\Ra-system_ERP\ERP_APP\env\Scripts\python.exe |
|
| 3.8.3 |
|
| ['G:\Ra-system_ERP\ERP_APP', 'C:\Users\Morteza\AppData\Local\Programs\Python\Python38\python38.zip', 'C:\Users\Morteza\AppData\Local\Programs\Python\Python38\DLLs', 'C:\Users\Morteza\AppData\Local\Programs\Python\Python38\lib', 'C:\Users\Morteza\AppData\Local\Programs\Python\Python38', 'G:\Ra-system_ERP\ERP_APP\env', 'G:\Ra-system_ERP\ERP_APP\env\lib\site-packages'] |
|
| Wed, 28 Sep 2022 18:32:52 +0000 |
|
`
`
G:\Ra-system_ERP\ERP_APP\env\lib\site-packages\ra\admin\admin.py, line 343, in wrapper return self.admin_site.admin_view(view)(*args, **kwargs)
…
Local vars
| Variable |
Value |
| args |
(<WSGIRequest: GET '/sample_erp/expense/'>,) |
| kwargs |
{} |
| self |
<ExpenseAdmin: model=Expense site=RaAdminSite(name='ra_admin')> |
| view |
<bound method EntityAdmin.changelist_view of <ExpenseAdmin: model=Expense site=RaAdminSite(name='ra_admin')>> |
You’re seeing this error because you have DEBUG = True in your Django settings file. Change that to False, 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_view return super(EntityAdmin, self).changelist_view(request, extra_context)
…
Local vars
| Variable |
Value |
| class |
<class 'ra.admin.admin.EntityAdmin'> |
| extra_context |
{'description': None} |
| request |
<WSGIRequest: GET '/sample_erp/expense/'> |
| self |
<ExpenseAdmin: model=Expense site=RaAdminSite(name='ra_admin')> |
`
`
G:\Ra-system_ERP\ERP_APP\env\lib\site-packages\reversion\admin.py, line 235, in changelist_view return super().changelist_view(request, context)
…
Local vars
| Variable |
Value |
| class |
<class 'reversion.admin.VersionAdmin'> |
| context |
{'description': None, 'has_change_permission': True} |
| extra_context |
{'description': None} |
| request |
<WSGIRequest: GET '/sample_erp/expense/'> |
| self |
<ExpenseAdmin: model=Expense site=RaAdminSite(name='ra_admin')> |
`
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 = Truein 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
`