Re: newforms: how to report multiple cross-field validation errors?

2007-05-23 Thread Mario Graziosi
all of its validation, > collecting the errors as it goes and then raise a ValidationError. Note > that ValidationError can take a list of error messages in its > constructor, so just collect all your errors into a list and pass them > all at once to a single ValidationError raiser. > >

Re: How to render newforms dynamically created fields?

2007-04-30 Thread Mario Graziosi
p through it in the template. I am not > sure about syntax, check the documentation in tutorial. > > > > > > -- Mario Graziosi, mailto:[EMAIL PROTECTED] FG&A srl (http://www.fgasoftware.com/) [EMAIL PROTECTED]: The agile PBX (http://www.voiceatwork.eu/) Tel: 02 9350-4780 i

How to render newforms dynamically created fields?

2007-04-30 Thread Mario Graziosi
I might accomplish this? Thanks in advance for any help. -- Mario Graziosi, mailto:[EMAIL PROTECTED] FG&A srl (http://www.fgasoftware.com/) [EMAIL PROTECTED]: The agile PBX (http://www.voiceatwork.eu/) Tel: 02 9350-4780 interno 101, Fax: 02 9139-0172 --~--~-~--~~~---

Re: How to restrict, in "delete confirmation", the affected objects list?

2006-12-11 Thread Mario Graziosi
Jorge, thank you very much! Both for the detailed explanation and for the time you spent answering. I'll surely follow your guidelines for the "clean" solution. Jorge Gajon wrote: > On 12/9/06, Mario Graziosi <[EMAIL PROTECTED]> wrote: > >> Is it possible

How to restrict, in "delete confirmation", the affected objects list?

2006-12-09 Thread Mario Graziosi
Is it possible to restrict the list of "would be deleted" objects when asking to delete a specific object using the admin interface? I have several thousand records related to the object to be deleted. Is is quite useless (and time consuming) to display the list of 3000+ records to ask for co

Re: How to access manipulator from admin change_form?

2006-11-08 Thread Mario Graziosi
Mario, > > you probably need something like this: > > http://paste.e-scribe.com/2702/ > > Though i wouldn't know how to apply it to the admin interface if that's > what u want. > > Lorenzo > > On Nov 8, 4:43 pm, Mario Graziosi <[EMAIL PROTECTED]> w

Re: repopulation of formfields with select fields not working

2006-11-08 Thread Mario Graziosi
nse('accounts/register_details.html', {'form': > form,'user':request.user}) > > > but there seams that the selection fields dont get selected how do i > solve this problem? > > Cheers > > Pat > > > > > > --

How to access manipulator from admin change_form?

2006-11-08 Thread Mario Graziosi
Please, does anybody know how do I access the manipulator from withn the template of the admin change_form? Thanks. -- Mario Graziosi, mailto:[EMAIL PROTECTED] FG&A srl (http://www.fgasoftware.com/) [EMAIL PROTECTED]: The agile PBX (http://www.voiceatwork.eu/) Tel: 02 9350-4780 interno

Re: Best way to extend admin change_form?

2006-11-05 Thread Mario Graziosi
directory. > > btw: I´m on the django IRC channel for additional help. > > patrick > > Am 05.11.2006 um 18:02 schrieb Mario Graziosi: > > >> Thanks patrickk, >> >> but the point is that I wish to use the standard change_form most >> of the >

Re: Best way to extend admin change_form?

2006-11-05 Thread Mario Graziosi
directory (django/contrib/ > admin/...) to your template_directory, > e.g. to /templates/app_name/model_name/change_form.html > > patrick > > Am 05.11.2006 um 17:50 schrieb Mario Graziosi: > > >> I wish to extend the standard admin "change_form": which is the >

Best way to extend admin change_form?

2006-11-05 Thread Mario Graziosi
I wish to extend the standard admin "change_form": which is the best way to do it? The specific problem I need to solve is to find a workaround to a Django bug (Ticket #2522). I need to keep form header, footer and submit buttons and store my own stuff. I found this possible solution: 1. creat

Re: Bad title alignment for short_description in Admin

2006-10-07 Thread Mario Graziosi
Malcolm Tredinnick wrote: > On Sat, 2006-10-07 at 12:06 +0200, Mario Graziosi wrote: > [...] > >> Yes: I'm trying to render "notes" contents (and I get them right), but >> I can't get right their relative title (i.e. notes.short_description). >&

Re: Bad title alignment for short_description in Admin

2006-10-07 Thread Mario Graziosi
Malcolm Tredinnick wrote: > On Sat, 2006-10-07 at 12:06 +0200, Mario Graziosi wrote: > [...] > >> Yes: I'm trying to render "notes" contents (and I get them right), but >> I can't get right their relative title (i.e. notes.short_description). >&

Bad title alignment for short_description in Admin

2006-10-07 Thread Mario Graziosi
I have several fields with additional notes in my model classes, something similar to this: def notes(self): result = "some-string" ... formatting code ... return result notes.short_description = "My Notes" However when the title in short_description gets format

Which best place to cross-validate Admin form fields?

2006-09-24 Thread Mario Graziosi
other fields contents, that doesn't seem a reasonable solution. Is there any better djangonic way to cross-validate fields? Thanks for any help in advance. Mario. -- Mario Graziosi, mailto:[EMAIL PROTECTED] FG&A srl (http://www.fgasoftware.com/) [EMAIL PROTECTED]: The agile

help_text badly formatted in Admin when radio_admin=True

2006-08-27 Thread Mario Graziosi
I get the help_text badly formatted when I set the radio_admin=True together with "choices". Instead of getting the text aligned right beyond the data entry field, it gets aligned immediatly on the raight edge of the data entry field. Am I doing something wrong or is this behavior the expected

Re: Error when 2 foreign keys to same Model w/ edit_inline=True

2006-08-11 Thread Mario Graziosi
Malcolm Tredinnick wrote: > On Fri, 2006-08-11 at 10:50 +0200, Mario Graziosi wrote: > >> I have a tough problem representing my data model >> with Django when using the standard Admin Interface. >> >> I need to represent the concept of a callgroup: a list >>

Error when 2 foreign keys to same Model w/ edit_inline=True

2006-08-11 Thread Mario Graziosi
quot;, null=True, blank=True ) -- Mario Graziosi, mailto:[EMAIL PROTECTED] FG&A srl (http://www.fgasoftware.com/) [EMAIL PROTECTED]: The agile PBX (http://www.voiceatwork.eu/) Tel: 02 9350-4780 interno 101, Fax: 02 9350-0178 --~--~-~--~~~--