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 =
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
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
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
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
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
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
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
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
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
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
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.
--~--~-~--~-
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
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
[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
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
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
17 matches
Mail list logo