Re: Is it possible to change the width of the boxes displayed by the filter_horizontal in Django admin interface?

2010-03-31 Thread rc
Walt, Thanks for the clarification. That helped a lot. I did get this working. Yeah! Had to do a slight tweak to the surrounding elements on the page to get it to look right (minor change to widgets.css). Now I can see all of the data for the profiles. Seems like there should be a way to auto

Re: Is it possible to change the width of the boxes displayed by the filter_horizontal in Django admin interface?

2010-03-25 Thread rc
Walt, Thanks for the response. This is making me crazy. Seems like this should be an easy thing to do. I have tried your suggestion, but I am not totally clear on where in the admin.py It is just not loading up the new media class. Am I supposed to add the resize class as a separate class like

Is it possible to change the width of the boxes displayed by the filter_horizontal in Django admin interface?

2010-03-22 Thread rc
.py file, but could not find much information on filter_horizontal other than how to use it. Any help is greatly appreciated. rc -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@goo

Increase width of filter_horizontal in django admin

2010-03-15 Thread rc
I need to increase the width of the filter_horizontal in my django admin page. When the profile_test (keys off of testcase.test_name which is very wide) fields are displayed both sides of the filter_horizontal are to narrow. How do I increase the width? I don't need the max_length of 300, but 75

Re: Unable to delete certain admin objects. Get "coercing to unicode" error on some, but not all objects.

2010-01-07 Thread rc
Ahh. There was one foreign key relationship (table not managed under admin) that i missed. It was indeed returning an int. Fixed it by using force_unicode and it's now working. Thanks Karen. On Jan 6, 7:06 pm, Karen Tracey <kmtra...@gmail.com> wrote: > On Wed, Jan 6, 2010 at 5:20 PM, r

Unable to delete certain admin objects. Get "coercing to unicode" error on some, but not all objects.

2010-01-06 Thread rc
I get the following error when I try and delete a "testcase": Request Method: GET Request URL: http://hades/admin/bisite/testcase/20/delete/ Django Version: 1.0.2 final Python Version: 2.5.2 Installed Applications: ['django.contrib.auth', 'django.contrib.contenttypes',

insert into data field of model based on other data field values

2009-12-07 Thread rc
I am trying to figure out the best way to go about this. Here is the scenario: I have five fields in my model that the user will set from the admin. When they save the model I want to insert a value into another field of the model based on these values. Where/How is the best place to handle

Re: Is it possible to 'order' the left side of a filter_horizontal?

2009-11-30 Thread rc
he widget has a chance to render itself. > > Both methods are effective, but be sure to consider my initial > statement, about performance impact.  Pick the method that strikes the > balance in your mind between performance and practicality. > > Hope that helps! > > On Nov 2

Is it possible to 'order' the left side of a filter_horizontal?

2009-11-25 Thread rc
I have configured a modeladmin which uses the filter_horizontal feature. I would like to be able to order left side of this feature by name instead of the default (which I believe is by id). Is this possible? I see how to use "ordering" in the display for change lists, but not sure how to apply

Re: Configure multi-field multi-select form in Django Admin

2009-11-25 Thread rc
ecessarily match the Django norm. Reed On Nov 24, 7:41 pm, Tim Valenta <tonightslasts...@gmail.com> wrote: > > The javascript will be found somewhere under django/contrib/admin/media/js. > > To be clear, rc, although the javascript is of course available for > viewing, you should

Re: Configure multi-field multi-select form in Django Admin

2009-11-24 Thread rc
As I mentioned, the Django admin has exactly what I want with the user permission form (auth_user, auth_permissions and auth_user_user_permission). Does anyone know where that code is located in the Django environment? On Nov 24, 10:13 am, rc <reedcr...@gmail.com> wrote: > What I w

Configure multi-field multi-select form in Django Admin

2009-11-24 Thread rc
What I want to do is have a form with one field that allows you to select a profile. Once this profile is selected there will be two windows below that show available tests and selected tests. The Django admin interface for the user permissions uses this format. Not sure what it is called in

Configuring a multiselect field in django admin

2009-11-23 Thread rc
I am fairly new to Django and I am trying to get a few things working in Django Admin. I have the models shown below. I have a profile table and a test table. I have a joining table called testsuite which allows me to map multiple tests to a profile. This all works fine, but in the admin part I

Re: how to do a three table join with django models

2009-02-05 Thread rc
I figured it out. The model uses a "different" name for the foreign key. In my instance test is results FK to testcase. I changed it to Results.objects.all().select_related('profile','test') and worked. Thanks for your help. On Feb 5, 10:48 am, rc <reedcr...@gmail.com> wrot

Re: how to do a three table join with django models

2009-02-05 Thread rc
Release >     fk Artist > > class Artist >     fk Label > > class Label > > Release.objects.all().select_related('artist','artist_label') > > note selecting the C class via the B class   'B_C' > > On Thu, Feb 5, 2009 at 5:28 PM, Daniel Roseman < > > roseman.

how to do a three table join with django models

2009-02-05 Thread rc
I am newbie to Django and I am struggling to get my arms around DJango and it's data access api (models). I have these models: class Profile(models.Model): profile_id = models.AutoField(primary_key=True) profile_name = models.CharField(max_length=75) def