Re: UpdateView and ImageField style

2013-12-13 Thread BikerJim
Hi Jonathan, Thanks a lot for the pointer (it was something obvious!), I now have it working and without the extraneous HTML, and I can now style it to be much prettier, yippee. :) I had to do one extra little thing to make it work (with my template / model setup), i.e. specify the model in th

Re: UpdateView and ImageField style

2013-12-12 Thread Jonathan Baker
Welcome to the mailing list. I've never done this myself, but a bit of Googling leads me to believe that you need to define your own UserProfileEdit form class, instead of letting UpdateView automatically create the form for you. This will allow you to use the FileInput widget and avoid the extrane

UpdateView and ImageField style

2013-12-12 Thread BikerJim
Hi, First post, be gentle :), I cant find a solution here or on StackOverflow, which either means that I am missing something obvious, or the answer is 'you cant', or I am googling for the wrong thing. I am using Django 1.6 on Kubuntu with PIL... I have a simple UserProfile with an image field