python - Django: modifying data with user input through custom template tag? -
is possible modify data through custom template tag in django? more specifically, have model named shift data want display in calendar form. figured using custom inclusion tag best way go it, want users able click on shift , buy/sell shift (thus modifying database). guess can't inclusion tag, if write different type of custom template tag ground up, possible? if so, can direct me few resources address how write such tag?
thank in advance.
this type of logic not belong in template tag. belongs in view respond ajax requests , return jsonresponse. you'll need javascript handle making request based on input well.
Comments
Post a Comment