From: Blair Trump <btr...@gmail.com>
Date: Tue, 24 Jul 2012 16:53:58 -0700 (PDT)
Local: Tues, Jul 24 2012 7:53 pm
Subject: Re: object has no attribute '_state'
Thank you! Just also had this problem today, 24 July 2012. Resolved now. :) Cheers! On Thursday, July 12, 2012 10:30:27 AM UTC-7, aria wrote:
> Hello, > I realize this post is from 2010, but I also had this problem as of July > According to the Django Model reference<https://docs.djangoproject.com/en/dev/ref/models/instances/?from=olddocs>, > On Monday, July 5, 2010 7:51:51 PM UTC-7, jcage wrote: >> Hi everyone. I'm quite new to python and django. I was wondering if >> My models.py contains the classes QuestionSet and Question, which >> q1 = Question(script = "How are you?", comment = "no comment", order = >> but an attempt to run q1.save() results in the following error : >> >>> q1.save() >> The class definitions are : >> class QuestionSet(models.Model): >> def __init__(self, *args, **kwargs): >> class Question(QuestionSet): >> def __init__(self, *args, **kwargs): >> Would greatly appreciate any suggestions You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||