Hi,
Now when I think about this, even when I POST the form, I would
somehow have to tell Django to check for uniqueness in the following
way: -
SELECT * from my_table WHERE short_name = [short_name parameter goes
here] AND id != [primary key parameter goes here]
and
SELECT * from my_table WHER
Thank you Daniel,
That's absolutely what it was.
So posting all that amount of code was fruitful after all, else we
would have gone back and forth trying to find out where the problem
lay!!
Regards,
CM
On Jun 19, 12:19 am, Daniel Roseman wrote:
> On Jun 18, 8:02 pm, chefsmart wrote:
>
>
>
>
On Jun 18, 8:02 pm, chefsmart wrote:
> Hi,
> Now consider the following view: -
>
> def edit_diploma(request, did):
> diploma_to_edit = Diploma.objects.get(id=did)
> if request.method == 'POST':
> form = EditDiplomaForm(request.POST)
> if form.is_valid():
> di
3 matches
Mail list logo