non DB related fiels in model to appear in a form

2015-06-01 Thread wigmbhmtl
Hello all, how can I add a string in the model that would appear in the output form exactly on the position from the model as text e.g. in a Paragraph. Is it possible to create a non DB related Field in models for that? Example how I would like it to be : in models.py class Example(models.M

Re: non DB related fiels in model to appear in a form

2015-06-02 Thread Chris Strasser
hi Reiner I think what you want to do is controlled in the view not the model. in your view do something like this: context = {'form':form, 'infotext': "some informational text"} return render(request,'form.html', context) then in your template you can refer to it as follows: