Django admin, Proper way to create change_form that don't really save objects -
let's have model message
. in admin, need add together message submitting/uploading message file, not posting message fields would. process is, file uploaded, send processing programme parse file, farther processing , add together entry database.
so create custom form modeladmin
(assign form = customform)
1 filefield
, override save_model()
not save anything. however, isn't proper way doc mention modeladmin's save_model() method not veto purpose. proper way this?
some suggest button pointed custom view, while it's surelly possible logically i'm still adding message view doesn't seem nature.
django
No comments:
Post a Comment