I am creating a form in Django. When I send data, the data is naturally sent. My problem is that I want to pass an additional property to the POST data, which is not one of the form fields, but another.
So that I can do something like (pseudocode) later:
def form_view(request): if request.method == 'POST': form = MyForm(request.POST) if form.is_valid(): extra_field = form.cleaned_data['extra_field']
Anything that can work to pass an additional property, which is not a field, but a simple variable, into a POST request.
source share