order_with_respect_to and edit_inline in MR

2006-06-06 Thread Colleen Owens
Hi, I switched my code over to M-R this past weekend and was surprised that it went pretty smoothly. There are a couple things in my models that aren't working anymore though. The first is order_with_respect_to. I have an inline edited object that I want to order with respect to its related objec

Re: MySQL + FastCGI + Dreamhost = Trouble with foreign key in admin

2006-03-02 Thread Colleen Owens
s all foreign keys edited inline in my models. Thanks for any help anyone can provide. I'm supposed to have this installed to show the prototype to a client on Monday and this is kind of a show stopper. Colleen Colleen Owens wrote: > I'm not sure what query the admin interface is sending

Re: MySQL + FastCGI + Dreamhost = Trouble with foreign key in admin

2006-03-02 Thread Colleen Owens
ql_exceptions.OperationalError: (1093, "You can't specify target table 'polls_choices' for update in FROM clause") >>> Julio Nobrega wrote: > Can you paste the query here? I think the problem is an unsupported > feature by Mysql... Do you have another Mysql i

Re: MySQL + FastCGI + Dreamhost = Trouble with foreign key in admin

2006-03-01 Thread Colleen Owens
I forgot to say this is with current Django trunk. -- Forwarded message -- From: Colleen Owens Date: Thu, 02 Mar 2006 03:34:08 - Subject: MySQL + FastCGI + Dreamhost = Trouble with foreign key in admin To: "Django users" I'm getting an error when I try to m

MySQL + FastCGI + Dreamhost = Trouble with foreign key in admin

2006-03-01 Thread Colleen Owens
I'm getting an error when I try to modify a foreign key edited inline in the admin interface using MySQL + FastCGI on a Dreamhost account. I get the same type of error when I try to modify a Poll object (with inline Choices) from the tutorial, so I know it's not my model that's the problem. I've

Re: custom admin view for edit_inline object

2006-02-11 Thread Colleen Owens
On 11 Feb, 2006, at 06.55, Robert Wittams wrote: > I do not know how to make it any clearer than that. MyBoundRelatedObject > is a class. > > You do *not* need to make up a new constant like TABULAR. It is purely a > mechanism that allows people to specify the tabular view or whatever > without ma

Re: custom admin view for edit_inline object

2006-02-09 Thread Colleen Owens
On 09 Feb, 2006, at 13.21, Robert Wittams wrote: > > The overrides stuff is just to allow TABULAR and STACKED to continue to > work, without meaning that the core django has a dependency on the admin > code. > > As you are defining your own class, that shouldn't matter for you, you > can just us

Re: custom admin view for edit_inline object

2006-02-09 Thread Colleen Owens
> Did you read the line: > > Inline editing can be customised. rather than using > edit_inline=meta.TABULAR or meta.SOURCE, you can define a custom inline > editing mode. This is done by subclassing BoundRelatedObject?, and using > that class. eg edit_inline=HorizontalScroller?. > > You can look a

Re: custom admin view for edit_inline object

2006-02-09 Thread Colleen Owens
> There is a simple way to create special admin templates for one object. > See > http://code.djangoproject.com/wiki/NewAdminChanges#Adminconvertedtoseparatetemplates > > HTH, > Edgars Thanks for the link, I hadn't seen this before. I basically derived the same solution on my own, except that I a

Re: custom admin view for edit_inline object

2006-02-08 Thread Colleen Owens
So I'm replying to my own message here, but I want to tell you how I did this in case a) someone wants to show me a better way b) it could be useful to someone Again, what I'm trying to do is customize the way inline-edited objects are displayed for one of my applications (without affecting any o

custom admin view for edit_inline object

2006-02-08 Thread Colleen Owens
Hi all, I'm making a custom view for the admin interface for one of my modules. I like all the stuff on the top of the page, but once I get to the edit_inline related objects, I wan't to change the way they're laid out to make them more compact and I've added special checkboxes that can select/unse

Re: application level settings

2006-01-12 Thread Colleen Owens
On 1/11/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: On 1/11/06, Colleen Owens <[EMAIL PROTECTED]> wrote:>  My latest question - I want to have some settings that apply to an> application (not the objects within that application's model but to the > application as a w

scheduling capabilities?

2006-01-11 Thread Colleen Owens
And another question quick on the heels of the last one...Does Django have any built-in scheduling capabilities, like "run X every 15 minutes"? Or should I stick with Twisted for that? Thanks again. Colleen

application level settings

2006-01-11 Thread Colleen Owens
Hi. First I want to thank everyone for answering my really basic questions. The responses I've gotten here have been extremely helpful. I'm starting to get the hang of Django a little bit and I love it so far. My latest question - I want to have some settings that apply to an application (not the

Re: customizing appearance of foreign key edited inline

2006-01-10 Thread Colleen Owens
On 1/6/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: On 1/4/06, Colleen Owens <[EMAIL PROTECTED]> wrote:>  I'm having trouble figuring out how to customize the appearance of a> foreign key that's edited inline in the admin interface. For example, if I > wanted to c

Fwd: customizing appearance of foreign key edited inline

2006-01-05 Thread Colleen Owens
I'm resending this question because I'm still having trouble figuring this out. I'm interested in customizing how a inline-edited foreign key appears in the admin interface. Is there some way to do this? Thanks.-- Forwarded message ------From: Colleen Owens <[EMA

customizing appearance of foreign key edited inline

2006-01-04 Thread Colleen Owens
Hi, I'm having trouble figuring out how to customize the appearance of a foreign key that's edited inline in the admin interface. For example, if I wanted to change how the poll choices from the tutorial are displayed, by suppressing the number of votes, or changing the order in which the votes and

Re: help passing data from view to template

2005-12-21 Thread Colleen Owens
Okay, yeah this was a dumb question, foolishly asked before I got through part 4 of the tutorial. I see now that calling get_link_list from within my template will do what I need. I didn't realize that get_link_list would preserve ordering.On 12/21/05, Colleen Owens <[EMAIL PROTECTED]>

help passing data from view to template

2005-12-21 Thread Colleen Owens
I'm a Django newbie. This follows up on a question I asked before and a very helpful answer to on this list. So I have a list of dates and for each date I have a list of link objects I want to display. I'm trying to figure out how to best pass this data from my view to the template. I tried this