Opened 17 years ago
Closed 17 years ago
#7212 closed (fixed)
save_base() alters data, and can be called from templates
Description ¶
In [7221], save()
was changed to just be a call to save_base()
, making subclassing easier, but the alters_data
attribute never made it onto save_base()
. Since save_base()
can (and usually is) called without arguments, this means that templates that receive an object can use {{ obj.save_base }}
and commit to the database, when that shouldn't be allowed.
Change History (2)
by , 17 years ago
Attachment: | save_base.alters_data.diff added |
---|
comment:1 by , 17 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Added
alter_data
toModel.save_base()