Opened 9 years ago
Closed 9 years ago
#26620 closed Bug (fixed)
refresh_from_db() shouldn't ignore unknown keyword arguments
Description ¶
This code should raise a TypeError, but for some reason unknown keyword arguments are ignored:
a.refresh_from_db(unknown_kwarg=10)
Dunno if this is considered a bug or cleanup, but it can hide real mistakes in code.
Change History (4)
comment:1 by , 9 years ago
Cc: | added |
---|
comment:3 by , 9 years ago
Cc: | removed |
---|---|
Summary: | refresh_from_db() shouldn't ignore unknown keyword argumengs → refresh_from_db() shouldn't ignore unknown keyword arguments |
Triage Stage: | Unreviewed → Accepted |
Note:
See TracTickets
for help on using tickets.
Anssi, did you have a reason for the original design?