I see. Well, I guess I don't know why it worked before either. I
made the following change and that seems to have cleared up the
problem:
This:
if not form.slug:
form.slug = slugify(form.title)
if form.is_valid():
article = form.save(commit=False)
is now:
if form.is_valid():
article =
On Jun 24, 12:40 am, saxon75 wrote:
> I'm having a strange problem with my site wherein a ModelForm doesn't
> appear to recognize that it has an attribute that it ought to. I
> should preface this by saying that I recently moved my codebase to a
> new server--everything had been working fine on
I'm not sure why it might work on one server but not on another unless the
version of Django was different but as far as I know form.slug is not really
guaranteed to exist. Normally it gets added to form.fields or somesuch by
the forms metaclass.
The actual data from the post request should also n
3 matches
Mail list logo