One-to-One relationship

2008-01-11 Thread Narso
Hi, When I have put a models.OneToOneField in a model, the changelist page of the related model, lost the filtering box. Why? I had tried to make this manually, changing the field to models.ForeignKey field, with a PrimaryKey attribute set. Then I got a Select SQL Error. I need both OneToOneFiel

Re: Getting development environment configured

2008-02-08 Thread Narso
Hi. I just (for development server) use the command lines option: python manage.py runserver --adminmedia=/home/user ... /mysite/public --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post t

auth/add/user error

2008-02-08 Thread Narso
Hi. Forgive my poor English I think there is an error in the "admin/auth/user/add_form.html" template, because it uses a form_url variable that does not exist. The user_add_stage doesn't pass it. Normally this error is not fire, the form's action attribute get blank. But, when I set the TEMPLATE

CheckboxSelectMultiple

2008-02-25 Thread Narso
Hi, every body. How can I replace the SelectMultiple widget of the Admin Interface for a CheckboxSelectMultiple. I try using a new model field with the formfield() method overrided, but it only work with forms created by newforms, not by the Admin interface one. Thanks --~--~-~--~~-

An Admin Site view issue

2008-04-03 Thread Narso
Please, forgive my poor English, and my poor Django. I am using Admin App forms in my own project, making a wrapper view to the admin's ones, (I know, this is not a good practice, but I get quick start with it without to write a form for each model, and I can use the edit_inline feature of the Ad

mod_python problem

2008-04-19 Thread Narso
Hi, everybody. In my appication ("nude") I have 4 models (really I have some more), something like this: class State(models.Model): name:models.CharField(CharField(max_length=30) class Admin: pass class WorkCenter(models.Model): State=models.ForeignKey(State) phone=

Django and DataBase Views

2008-04-19 Thread Narso
Hi, I am asking for help. I made a DataBase View and a Model to join some models/tables for use Admin Site filters. In the interactive shell (python manage.py shell) it work ok, but in the browser take a inaceptable long long time to get response. The example models is shown in the message "mod_

Inheritance

2007-12-24 Thread Narso
Hi. Forgive my poor English. I have a lot of models for classifications. All of them have similar attributes. When I try to use inheritance in the models design, the admin interface doesn't work with ForeignKey fields. Example: class BasicModel(models.Model): name=models.CharField(maxlength