"available user permissions" list incomplete

2008-11-14 Thread Alex Chun
I need to give permission to an admin user to add/edit a class, but that class does not appear on the "available user permissions" list. The class is listed automatically for superusers, so it appears to be registered correctly with the admin. But I can't make that class available to regular adm

Re: How to subclass a model class?

2008-09-08 Thread Alex Chun
Thank you AmanKow. I will try adding a method to my model to "hold" the additional "field." On Sep 7, 9:57 am, AmanKow <[EMAIL PROTECTED]> wrote: > Monkey patching attributes to the instances would not be the correct > django idiom for adding a calculated field.  There is a simple and > straight

Re: How to subclass a model class?

2008-09-06 Thread Alex Chun
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

Re: How to subclass a model class?

2008-09-05 Thread Alex Chun
age, along with some calculated information for each "car," which I have called the "comment" field. Thanks again. On Sep 5, 5:11 pm, bruno desthuilliers <[EMAIL PROTECTED]> wrote: > On 6 sep, 01:54, Alex Chun <[EMAIL PROTECTED]> wrote: > > > How can I su

How to subclass a model class?

2008-09-05 Thread Alex Chun
How can I subclass a model class, in order to add a temporary field? For example, say I have a class Car, and I want to subclass it to TempCar, and add a comment field. class TempCar(Car): comment = models.CharField(max_length = 200) The trouble arises when I try to get a QuerySet by doing