The _build_args function doesn't work correctly for ObjectArgs
Bug #726191 reported by
Shailesh Kumar
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Django ModelStore |
New
|
Undecided
|
Unassigned |
Bug Description
BaseMethod has two members : self.args, self.kwargs.
_build_args replaces the contents of these members with data from self.field.
While this works fine for StoreArg, ModelArg and RequestArg, this is completely incorrect for ObjectArg. The current implementation causes 1st object in the queryset to be placed as the ObjectArg for each call to get_value.
To post a comment you must log in.