Opened 6 years ago

Closed 6 years ago

#12514 closed (fixed)

Wrong Model.save() signature in topics/models and ref/models/instance

Reported by: Armando Pérez Marques Owned by: nobody
Component: Documentation Version: master
Severity: Keywords:
Cc: mandx@… Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

With the new multi-db option, now Model.save() takes the adittional parameter 'using' specifying what DB connection to use to save the object. But in the docs, it stills shows this: Model.save([force_insert=False, force_update=False]). I realize of this because I have some models with the save() method redefined, and when updated Django to trunk version, it starts complaining about an extra keyword parameter, 'using'. I temporarily solved this using my_model.save(self, *args, kwargs), but it would be nice not to use this magic syntax.

Change History (2)

comment:1 Changed 6 years ago by Alex

  • Triage Stage changed from Unreviewed to Accepted

comment:2 Changed 6 years ago by russellm

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in [12118].

Note: See TracTickets for help on using tickets.
Back to Top