custom view in admin

2011-12-07 Thread TeenSpirit83
i'm customizing the django admin with custom views for a model i need to create a custom view which is a little different frome the default changelist we all know clicking on the records in the default changelist just to open the object detail page , the django admin calls an url like this

Admin (when saving): manipulating a parent field based on an inline object's field

2010-05-14 Thread TeenSpirit83
I have a Parent model having some Child objects edited as an inline in the change view of the Parent. I want to write some data in a Parent's field which is a calculation based on some other field of all its Child objects. I think i have to intercept child data in the save_model or save_formset

filtering admin changelist by callable

2010-04-15 Thread TeenSpirit83
Hi, I have a callable in the modeladmin for an object XX. Now I want to add a tool button (or something clickable) for filtering the changelist displaying only the object having value less than 30. How would you implement somthing like this? Thanks a lot! -- You received this message

button for filtering the admin changelist based on callable

2009-12-30 Thread TeenSpirit83
Hi, I have a callable in the modeladmin for an object XX. Now I want to add a tool button (or something clickable) for filtering the changelist displaying only the object having value less than 30. How would you implement somthing like this? Thanks a lot! -- You received this message

button for filtering changelist based on callable

2009-12-30 Thread TeenSpirit83
Hi, I have a callable "" which calculates a value for every object in a model "XX". I want to add a tool button on the changelist for XX that filters the list showing only the objects having this value less than 30. How would you implement such a stuff? Thanks -- You received this

Re: IndexError (list index out of range) in admin when updating a regex char primary key

2009-03-29 Thread TeenSpirit83
unique attribute. But I posted this thread hoping there could be some error and some solution without the need to change the model. I think this is what I'm gonna do. On 26 Mar, 20:57, Karen Tracey <kmtra...@gmail.com> wrote: > On Thu, Mar 26, 2009 at 7:06 AM, TeenSpirit83 > <

IndexError (list index out of range) in admin when updating a regex char primary key

2009-03-26 Thread TeenSpirit83
I can't find nothing similar on this group! Can you please help me? I get this error trace in the django 1.0.2 admin when updating a char primary key in a regex field. Thank you in advance! Environment: Request Method: POST Request URL: http://localhost/admin/webamf/azienda/04573030659/ Django

[admin] can i use both a ModelAdmin and an Inline for the same model class? How?

2009-01-21 Thread TeenSpirit83
I'm developing a little webapp starting from the contrib.admin at the moment i manage a class in the model with a modeladmin class but i need to edit the entries as a tabular inline of another class. if i write both the inline and the modeladmin classes in admin.py and try to register them both,

Re: validate fields in the admin as some local flavor form fields

2008-11-24 Thread TeenSpirit83
Yes, I think we should isolate the condition to he interested field without touching every other. So could it be if db_field == cuit ?? thanks ramiro ;) On 20 Nov, 00:01, "Ramiro Morales" <[EMAIL PROTECTED]> wrote: > The condition in line 16 can (and in fact should) be made more > specific to

Re: validate fields in the admin as some local flavor form fields

2008-11-19 Thread TeenSpirit83
no answers! i think there's no solution :( how can i create my validation rules for those fields? On 18 Nov, 01:00, TeenSpirit83 <[EMAIL PROTECTED]> wrote: > I'm writing an app with some italian zip and vat number fields and > also a province select field > can i force

validate fields in the admin as some local flavor form fields

2008-11-17 Thread TeenSpirit83
I'm writing an app with some italian zip and vat number fields and also a province select field can i force the admin class to validate the fields like class it.forms.ITVatNumberField class it.forms.ITZipCodeField class it.forms.ITProvinceSelect ??

Re: 'module' object has no attribute 'TabularInLine' Attribute Error in Django 1

2008-09-11 Thread TeenSpirit83
> > The L in Inline should not be capitalized.  Is it in some doc you are > working from? > > Karen The docs are correct! I'm so dumb, it is the first time I notice the L is not capitalized! I was sure of the opposite! Thanks a lot Karen! --~--~-~--~~~---~--~~ You

'module' object has no attribute 'TabularInLine' Attribute Error in Django 1

2008-09-11 Thread TeenSpirit83
I'm trying to upgrade my skills from django 096 to 1.0 so I started a new app and tried to create an admin class for a class within its model. I got the error I specified in the subject. I paste down the traceback .Can you help me? Environment: Request Method: GET Request URL: