problem with localization

2012-02-04 Thread Vittorino Parenti
Hello, i've a problem with number format localization. This is an example of my model and admin: MODEL class Procedure(models.Model): total_income = models.DecimalField ( default = 0, max_digits = 11, decimal_places = 4, verbose_name =

Re: problem with localization

2012-02-04 Thread Vittorino Parenti
t helps! Have a nice weekend! > Denis. > > On Sat, Feb 4, 2012 at 9:52 AM, Vittorino Parenti < > > > > > > > > vpare...@thundersystems.it> wrote: > > Hello, > > i've a problem with number format localization. This is an example

Re: problem with localization

2012-02-04 Thread Vittorino Parenti
elf.total_fee > >      def total(self): >          return self.total_no_vat() * 1.21 > >      def formatted_total(self): >          return format(self.total(), settings.DECIMAL_SEPARATOR, 2) > > now you can use formatted_total in your list_display > Denis. > > On

dynamic permissions

2012-02-05 Thread Vittorino Parenti
Hi, I have an application 'documents' where documents are stored according to categories: 'invoices', 'contracts', 'orders', 'etc'. I would like to create dynamic downloading permissions: - can download invoices - can upload invoices - can download contracts and so on Thanks, Vittorino -- You rec

Re: dynamic permissions

2012-02-05 Thread Vittorino Parenti
i've a model with document'categories and a model with documents. i want set permissions per categories: add invoices, download invoices and so on (invoice is an example of category). Thanks, Vittorino On 5 Feb, 12:21, kenneth gonsalves wrote: > On Sun, 2012-02-05 at 03:02 -08

Re: dynamic permissions

2012-02-05 Thread Vittorino Parenti
m/lukaszb/django-guardian > > On Sun, Feb 5, 2012 at 3:59 PM, Vittorino Parenti < > > > > > > vpare...@thundersystems.it> wrote: > > i've a model with document'categories and a model with documents. i > > want set permissions per categories: add invoices

number input format

2012-02-07 Thread Vittorino Parenti
Hi, I saw there is this setting DATE_INPUT_FORMATS for date. Is there a similar solution for the numbers? Thanks, Vittorino. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To u

Re: number input format

2012-02-07 Thread Vittorino Parenti
and separator symbol > THOUSAND_SEPARATOR = ',' > > On Tue, Feb 7, 2012 at 11:56 AM, Vittorino Parenti < > > > > > > vpare...@thundersystems.it> wrote: > > Hi, > > I saw there is this setting DATE_INPUT_FORMATS for date. > > Is there a si

could i use a select?

2012-02-07 Thread Vittorino Parenti
Hi, I've an Invoice Model: class Invoice(models.Model): ... number = models.IntegerField(...) customer = models.ForeignKey() date_invoice = ... total_invoice = ... ... To have the top ten customer can i do? I have to use a select: SELECT SUM(total_invoice) AS total FROM i

store admin selected action checkbox

2013-02-12 Thread Vittorino Parenti
Hi, in Admin changelist I need to store selected action checkbox without lose selections between pages. Selected checkboxes number could be of 1.000/10.000 selections. Someone can give me some advice on how to proceed. Thanks, Vittorino -- You received this message because you are subscribed t

download more records

2013-02-12 Thread Vittorino Parenti
Hi, by admin interface I have to download about 20,000 records using action and checkboxes. The page times out. What other alternative could I use? Thank you, Vittorino -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this gr

Cercasi Programmatori Python

2007-07-24 Thread Vittorino Parenti
La nosrta società cerca programmatori python con le seguenti conoscenze: - Python2.4 o superiori - Django - PostgreSQL, MySQL, Ajax - PHP (non indispensabile) Coloro che fossero interessati possono inviare il CV al seguente indirizzo: [EMAIL PROTECTED] Saluti, Vittorino. --~--~-~--~-

adding related objects

2006-10-14 Thread Vittorino Parenti
ore=True) nomeContatto = models.CharField(unique=True, maxlength=100, verbose_name="Nome", core=True) telefonoContatto = models.PhoneNumberField(verbose_name="Telefono", core=True) faxContatto = models.PhoneNumberField(verbose_name="Fax", core=True) cellul

translation

2006-10-15 Thread Vittorino Parenti
hi, i would like translate permissions in "insert group" and "insert user" pages. how can i do? thanks, -- Vittorino Parenti Thunder Systems Srl Tel. 0258018011 Fax 0258018012 www.thundersystems.it Riservatezza In ottemperanza al D.L. n. 196 del 30/6/2003 in m

Re: translation

2006-10-15 Thread Vittorino Parenti
[EMAIL PROTECTED] wrote: >> i would like translate permissions in "insert group" and "insert user" >> pages. >> how can i do? >> > > Django's Internationalization features are discussed here: > http://www.djangoproject.com/documentation/i18n/ > > Hope this helps! > > > > > I saw that there

ForeignKey in other models.py

2006-10-17 Thread Vittorino Parenti
different models.py, how can i do? thanks -- Vittorino Parenti Thunder Systems Srl Tel. 0258018011 Fax 0258018012 www.thundersystems.it Riservatezza In ottemperanza al D.L. n. 196 del 30/6/2003 in materia di protezione dei dati personali, le informazioni contenute in questo mess

Re: ForeignKey in other models.py

2006-10-20 Thread Vittorino Parenti
Michael Radziej wrote: >Vittorino Parenti schrieb: > > >>Hi, >>i found this in django documentation: >> >>"Note, however, that you can only use strings to refer to models in the >>same models.py file -- you cannot use a string to reference