Re: Non-displayed fields on admin form get overwritten

2008-12-07 Thread borntonetwork
On Dec 3, 11:41 am, Rajesh Dhawan <[EMAIL PROTECTED]> wrote: > On Dec 2, 10:03 pm,borntonetwork<[EMAIL PROTECTED]> wrote: > > > Thank you for your reply, Rajesh. The two fields in question are > > actually "pending_referrer_name" and "pending_referrer_email&

Re: Non-displayed fields on admin form get overwritten

2008-12-02 Thread borntonetwork
Thank you for your reply, Rajesh. The two fields in question are actually "pending_referrer_name" and "pending_referrer_email". In the admin class code below, I include them in the fields attribute. However, initially I did not and that is when the problem would occur. Here is the model code: cl

Non-displayed fields on admin form get overwritten

2008-12-02 Thread borntonetwork
Hi. I am using Django v1.0. When I use the "fields" attribute in my model to tell the admin interface what fields to display on the change form, I find that any fields I leave out get truncated when I use the form to update a record. For instance, say I have a model class called "Users" that has

Function-based objects in admin "Change..." page.

2008-11-25 Thread borntonetwork
Hello. I'm using Django v1. When I want to add a column in an admin list page, I just create a function in the associated model class and add it to the "list_display" tuple in the same model class. For instance, if I wanted to create a link to a reference id that would show up as a column, I wo

Re: Changing sort order of admin select object

2007-12-17 Thread borntonetwork
Thank you Malcom. Could you tell me: when the functionality is available, do you know what the steps to create the sort order will be? On Dec 17, 7:38 am, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Sun, 2007-12-16 at 17:42 -0800,borntonetworkwrote: > > Hello. > > > Does anyone have an i

Changing sort order of admin select object

2007-12-16 Thread borntonetwork
Hello. Does anyone have an idea how to create a specific sort order for a select box that represents a foreign key field in a django admin change form. For example, when adding a new "book" object via the django admin change form, one may see "Name", "Author", and "Category" inputs. The "Categor

Admin: How to ensure that at least on field is chosen from multiple fields.

2007-01-07 Thread borntonetwork
Hi. I have a model object called Customer. It contains the typical attributes/fields you might expect (name, street, apt, city, state, etc). Among these fields are 3 called home_phone, work_phone, and cell_phone. In the admin web interface, I need to ensure that the user must enter data into at