Hi again,

I'm trying to model a software project

So I have the following models (slightly abreviated):

class Project(models.Model):
    name = models.CharField(maxlength=80)

class Software(models.Model):
    name = models.CharField(maxlength=80)
    version = models.CommaSeparatedIntegerField(maxlength=5)
    project = models.ForeignKey(Project,blank=True,null=True)
    software =
models.ForeignKey("self",blank=True,null=True,related_name="extra")

The thought behind this is that a software project might contain some
basic software and then additional software pieces (e.g. extentions).
So a specific software piece can either be part of the project or be an
extension made by someone else for whatever reason and would therefor
not be counted as part of our project but would definitely be connected
to the base implementation.

Anyway, that's a side issue.

The problem I have with this is that when I try to add a software using
the admin interface, I get the following error:

Exception Type:         AttributeError
Exception Value:        'bool' object has no attribute 'get'
Exception Location:
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/django/db/models/related.py
in get_manipulator_fields, line 119

I've verified that the problem is with the software->software connection
(I think) since if I remove that attribute from the class everything
works as planned.

So, what have I missed ?

- Roland

--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to