On 04/11/06 05:53, Norbert wrote:
> Hello,
> 
> I'm just starting out in really trying to get a Django app on its 
> feet, even though I've played with it on and off for a couple weeks. 
> 
> Here's where my first cryptic error begins.
> I tried extend users.User in the most basic fashion I could think of:
> 
> class Stakeholder(meta.Model):
>         user = meta.ForeignKey(users.User, num_in_admin=1, \
>                 max_num_in_admin=1, unique=True, blank = True, \
>                 null=True, default = None, edit_inline=meta.TABULAR)
>         company = meta.CharField(maxlength=200)
>         
>         class META:
>                 admin = meta.Admin()
> 
>         def __repr__(self):
>                 return self.user.get_full_name()
> 

def __repr__(self):
     return self.get_user().get_full_name()


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