Re: 'QuerySet' object has no attribute '_meta' ... but I'm not using a QuerySet!

2012-07-26 Thread Tomas Neme
The ArtworkForm AND the full view code would be helpful, yes also, maybe you'll want to install django-extensions, werkzeug, and run your devserver with runserver_plus, that'll give you full debugging capabilities on your browser, and will be able to see what's each object (that instace object, sp

Re: 'QuerySet' object has no attribute '_meta' ... but I'm not using a QuerySet!

2012-07-25 Thread Babatunde Akinyanmi
Like the code for ArtworkForm On 7/26/12, Babatunde Akinyanmi wrote: > Looks good to me. Are you sure have shown us all the relevant parts of > your code? > > On 7/25/12, Deathweasel wrote: >> Hello, guys. >> This is Django 1.4. >> >> I have this code from my view: >> >> my_art = ArtworkMode

Re: 'QuerySet' object has no attribute '_meta' ... but I'm not using a QuerySet!

2012-07-25 Thread Babatunde Akinyanmi
Looks good to me. Are you sure have shown us all the relevant parts of your code? On 7/25/12, Deathweasel wrote: > Hello, guys. > This is Django 1.4. > > I have this code from my view: > > my_art = ArtworkModel.objects.get(id=pk) > comments = CommentModel.objects.filter(artwork=pk) > artForm = Ar

'QuerySet' object has no attribute '_meta' ... but I'm not using a QuerySet!

2012-07-25 Thread Deathweasel
Hello, guys. This is Django 1.4. I have this code from my view: my_art = ArtworkModel.objects.get(id=pk) comments = CommentModel.objects.filter(artwork=pk) artForm = ArtworkForm(instance=my_art) ... These models: class ArtworkModel(models.Model): """ This class contains the informat