geonode icon indicating copy to clipboard operation
geonode copied to clipboard

Bug and Solution for error (m2m_changed() missing 1 required positional argument: 'using') in datasets (in django admin)

Open HaziqLucii opened this issue 9 months ago • 2 comments

Expected Behavior

save without any error

Actual Behavior

got error missing positional argument like the error image below

Steps to Reproduce the Problem

  1. go to datasets, choose any data image
  2. save
  3. the error screen : image

To solve this :

  1. go to geonode/geonode/base/models.py
  2. 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', )
  3. 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:

HaziqLucii avatar May 06 '24 08:05 HaziqLucii