How to right align choice/input fields on django admin page

2010-08-24 Thread BlueSky
Hello, I have some long field names such as "The Primary Account Number" defined in my model. When I tried to add a new record on admin page, the field name is overlapped by the text input box (so Number is overwritten by the input box). Is there a way to right align the text input or choice boxes

How to get the Django bug and version data ?-I need help:)

2008-07-09 Thread BlueSky
Hello, I am a novice. I plan to study whether the design measures can predict fault-prone classes in Python. Through investigating, Django is a good experimental subject. I need the the Django bug and version data. Is there any web API for accessing the Django bug and version databases? It is a l

get the id associated to the ModelChoiceField

2007-10-08 Thread bluesky
Hi! I have created a custom form to validate data using newforms. I have a ModelChoiceField. I can't understand how I could get the id of the selected object in the list. If I try to access it by clean_data I get the description. How should I do? Thanks. --~--~-~--~~~--

Re: choose the database at runtime

2007-10-02 Thread bluesky
On 2 Ott, 03:58, "Ben Ford" <[EMAIL PROTECTED]> wrote: > I've had to do something similar to this myself... my suggestion would be to > have a look at the multiple-db-support branch, here is some code that I use > on top of that branch to connect to different databases with the same > schema: .

Re: choose the database at runtime

2007-10-02 Thread bluesky
On 2 Ott, 02:34, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > Well, anything is possible, but not necessarily easy. It certainly > isn't a built-in feature - at least, not like you describe. You're right. The problem is often the time and the effort to achieve the goal. > There are poss

choose the database at runtime

2007-10-01 Thread bluesky
Hi! I have a little problem with an erp application. As we would let customers use our web server we should create a db for every customer and connect the application to the right one at run time on login. Every db has the same schema. Users should give the following information at login: domain