misc: always use a fresh copy of parameters (#17173)

(this is required for tests)
This commit is contained in:
Frédéric Péters 2017-06-29 09:13:30 +02:00
parent a353802d12
commit b1b80dc97c
1 changed files with 1 additions and 1 deletions

View File

@ -1023,7 +1023,7 @@ class ConfigJsonCell(JsonCellBase):
return config_form_class
def get_cell_extra_context(self, context, **kwargs):
context.update(self.parameters) # early push for templated URLs
context.update(copy.copy(self.parameters)) # early push for templated URLs
ctx = super(ConfigJsonCell, self).get_cell_extra_context(context, **kwargs)
ctx['parameters'] = self.parameters
ctx.update(self.parameters)