django - Tastypie patch override -


my model has counter field increases every time user hits link in front end. i'm using backbone send data so

this.model.save({'increasecount': true}, {'patch': true}); 

since there no 'increasecount' field in database, i'd current value of 'counter' field , increase 1.

am on right track? should use different approach? how go implementing writing custom obj_update (or other) method of resource?

thanks!


Comments

Popular posts from this blog

design - Custom Styling Qt Quick Controls -

Unable to remove the www from url on https using .htaccess -