Open agamdua opened 10 years ago
There's a really stable way to add time stamps and other fields to django models that are reused in many packages.
Fun Django package: django-model-utils permalink to TimeStampedModel - just inherit it as another class in the required Django model.
Reassigned to Pranav since the feedback form is doing everything through a jQuery XHR POST.
All one needs to do is add the URL of the API on which the data is to be received.
Link to the docs: https://github.com/agamdua/clothzy/blob/dj-ng/clothzy/static/js/jquery.feedback_me.js#L26
and the source where the POST is happening: https://github.com/agamdua/clothzy/blob/dj-ng/clothzy/static/js/jquery.feedback_me.js#L543