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
Hi,
[ Please excuse if this post is a little verbose, but I want to
present my case thoroughly ]
I am using my own form to edit my models instead of using Django admin
(because of client compulsions)
Let's consider the following model: -
class Diploma(models.Model):
short_name = models.Cha
4 matches
Mail list logo