Something like this:
- Task will show up under Project (I removed class Admin, added
edit_inline)
- Tasks don't need a client link probably, since they are linked to a
project already


class Client(models.Model):
     name = models.CharField(maxlength=255)
     [...]

     def __str__(self):
         return self.nome

     class Admin:
         [...]

class Project(models.Model):
     client = models.ForeignKey(Client)
     name = models.CharField(maxlength=255)
     [...]

     def __str__(self):
         return self.nome

     class Admin:
         [...]

class Task(models.Model):
     project = models.ForeignKey(Project, edit_inline=models.TABULAR)
     user = models.ForeignKey(User)
     title = models.CharField(maxlength=200)

     def __str__(self):
         return self.title


--~--~---------~--~----~------------~-------~--~----~
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