A form that doesn't render.

2009-08-05 Thread cornjuliox
I've got this form that won't display at all. The page renders properly, right up to the submit button, but the form isn't there and neither is the error message "No comments to display". I've looked over the view and everything looks fine, but it just doesn't work. Could someone take a look at it

Re: A confusing traceback.

2009-07-24 Thread cornjuliox
Thanks. On Jul 24, 11:04 pm, Daniel Roseman wrote: > On Jul 24, 3:13 pm, cornjuliox wrote: > > > > File "C:\Blog2\..\Blog2\Engine2\models.py" in save > >   48.         super(Entry).save() > > > Exception Type: AttributeError at /admin_add/ > > Ex

A confusing traceback.

2009-07-24 Thread cornjuliox
Could someone lend a hand? Instead of using the built-in admin interface, I'm trying to build an 'admin page' of my own using ModelForms, but the problem is that the SlugField won't prepopulate like it does with the default admin so I've resorted to overriding the save() method and including a met

Re: Overriding admin forms

2009-07-19 Thread cornjuliox
Thanks! That helped. The slugfield is working again, although the textarea still looks broken (it works fine, though).. On Jul 18, 4:51 am, greatlemer wrote: > On Jul 17, 3:06 pm, cornjuliox wrote: > > > > > > > Hi everyone. I'm new to Django, learning things mostl

Overriding admin forms

2009-07-17 Thread cornjuliox
Hi everyone. I'm new to Django, learning things mostly through trial and error, but this time I can't seem to figure out what went wrong. I overrode the admin change_form.html for my model so that I could add a Javascript RTE that I found, but not only does the text area look broken (it's split in