Thanks, Bruno.  I will try that first thing Monday.

Thanks for helping this newbie out!!

On Sep 5, 5:50 pm, bruno desthuilliers <[EMAIL PROTECTED]>
wrote:
> On 6 sep, 02:19, Alex Chun <[EMAIL PROTECTED]> wrote:
>
> > Thank you for the response.  I should have said: the subclass is not
> > part of the model, and thus is not reflected in database tables.
> > I declare the subclass in one of my view functions.  Without getting
> > into the particulars of my app, I am trying to display a "list of
> > cars" on a web page, along with some calculated information for each
> > "car," which I have called the "comment" field.
>
> You don't need subclassing nor models.fields to do so. Just add the
> attribute(s) to your Car instances in the view. Here a simple example
> in the interactive shell with the User class :
>
>
>
>
>
> >>> from django.contrib.auth.models import User
> >>> User.objects.all()
> [<User: bruno>]
> >>> u = _[0]
> >>> u.some_data = "data"
> >>> u.some_data
> 'data'- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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