I am getting an error in admin when trying to do an add. The error is
mentioned in bugs but not related to the condition I have. It is 'bool'
object has no attribute 'get' in get_manipulator_fields, line 112.

Here are parts of my model:

  class Agent(models.Model):
     uid = models.IntegerField()
     pub_name = models.CharField(maxlength=60)
     ...

  class Listing(models.Model):
      title = models.CharField(maxlength=60)
      agent = models.ForeignKey(Agent)
      active = models.BooleanField(default=True)
      ...

  class Photo(models.Model):
      ##agent = models.ForeignKey(Agent)
      ## add agent blows up with the above line ???
      agent = models.IntegerField()
      sequence = models.IntegerField(maxlength=1,core=True)
      listing_record = models.ForeignKey(Listing)
      ...

It works fine as shown but, if I change the agent = line in Photo to be
the commented out line, I get this error. The other ForeignKey fields
seem just fine.

Using SVN (from late last week) and MySQL.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to