It doesn't solve.
The Task model have a lots of fields, can't go into models.TABULAR. Also 
I want to list in Task Admin the fields: ('name', 'client', 'project', 
'user')
I also have to list the open tasks associated to the logged user in the 
home link.

Thanks,
Nuno

SmileyChris wrote:
> 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 [email protected]
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