geonode
geonode copied to clipboard
Bug and Solution for error (m2m_changed() missing 1 required positional argument: 'using') in datasets (in django admin)
Expected Behavior
save without any error
Actual Behavior
got error missing positional argument like the error image below
Steps to Reproduce the Problem
- go to datasets, choose any data
- save
- the error screen :
To solve this :
- go to geonode/geonode/base/models.py
- go to line 420, in this function add using positional arg like this :
signals.m2m_changed.send( sender=self.through, action="pre_add", instance=self.instance, reverse=False, model=self.through.tag_model(), pk_set=new_ids, using='default', )
- go to line 435, same solution to the above, add the using positional argument.
Specifications
- GeoNode version: 4.2.3
- Installation type (vanilla, geonode-project): geonode-project
- Installation method (manual, docker): docker
- Platform: Ubuntu 24.04
- Additional details: