Hi folks.

I realize this is a recurring question on this list but I have not
found an authoritative answer, maybe some one can show me the best path
to take.

I want to add new fields to a User class.

should I:

1) extend from auth.User as described in the wiki. This seems nice, but
I feel like fiddling too much into django internals doing it. Should I
be afraid?

2) with a one to one relationship. This seems less threatening but,
while trying to implement this, I don't know:
        a) how do I specify, in the admin, that users should be edited inline,
is this possible at all?
        b)how to access user fields from the container class's admin, such as
this:
        class UserContainer(meta.Model):
                #our contained user
                user = meta.OneToOneField(User)
                # add any additional info here
                user_is_mad = meta.BooleanField()

                class META:
                        admin = meta.Admin(
                                # HERE: how do I access user's first_name?
                                list_display = ("user.first_name", 
"user_is_mad"),
                        )

        I am sorry if there are typos on this code, I am just trying to
provide am example...

        Any thoughts on this?

        Thanks a lot,
        arthur

p.s.: I guess after the new admin branch is merged it will be trivial
to subclass user but I have an app to deliver sooner than that so...

Reply via email to