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

Re: 'QuerySet' object has no attribute '_meta'

2008-11-21 Thread [EMAIL PROTECTED]
You can pass modelformset_factory a kwarg form which should just me the form class you want to use(aka make a ModelForm with the changes to the widgets). Alex On Nov 21, 7:25 pm, ayayalar <[EMAIL PROTECTED]> wrote: > Karen, > > On this note, is it possible to customize the widget's for formsets

Re: 'QuerySet' object has no attribute '_meta'

2008-11-21 Thread ayayalar
Karen, On this note, is it possible to customize the widget's for formsets as well? Thank you. On Nov 21, 3:23 pm, ayayalar <[EMAIL PROTECTED]> wrote: > Thanks Karen. That's exactly the case. Link you provided very helpful. > > On Nov 21, 3:00 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > >

Re: 'QuerySet' object has no attribute '_meta'

2008-11-21 Thread ayayalar
Thanks Karen. That's exactly the case. Link you provided very helpful. On Nov 21, 3:00 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Fri, Nov 21, 2008 at 4:22 PM, ayayalar <[EMAIL PROTECTED]> wrote: > > > I am just simply trying to display all existing objects in a form > > > MODEL: > > clas

Re: 'QuerySet' object has no attribute '_meta'

2008-11-21 Thread Karen Tracey
On Fri, Nov 21, 2008 at 4:22 PM, ayayalar <[EMAIL PROTECTED]> wrote: > > I am just simply trying to display all existing objects in a form > > MODEL: > class Product(models.Model): >name = models.CharField(max_length=30) > >def __unicode__(self): >return self.name > > VIEW > def pr