Subquery has too many columns

2017-02-18 Thread Elton Pereira
to annotate the base_manager. Should I open a new issue? -- Elton Pereira de Lima - Quem nada dúvida, nada descobre. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receivin

Choices in DecimalField - django 1.8.

2015-04-20 Thread Elton Pereira
In the model below, using the Django admin, no matter what value I choose, it always displays the default value. But writes the correct value in the database. Am I doing something wrong or is this a bug? TENSAO_220 = Decimal(220) TENSAO_110 = Decimal(110) TENSOES = ((TENSAO_220, '220 volts'),

BinaryField on Django 1.6b4

2013-10-18 Thread Elton Pereira
I created a new project with a class with two fields, one type CharField and another type BinaryField. When I access the admin, only the field name appears. My class: class Arquivo(models.Model): nome = models.CharField(max_length=255) arquivo = models.BinaryField() def

Template syntax erro

2011-04-29 Thread Elton Pereira
When trying to upload or download files that contain non-ascii caracters raise a TemplateSyntaxError exception with the following contents: Django Version: 1.2.5 Exception Type: TemplateSyntaxError Exception Value: Caught UnicodeEncodeError while rendering: 'ascii' codec can't

Error performing rar file download.

2011-04-27 Thread Elton Pereira
When attempting to download a zip file the following error is raised: 192.168.1.39 - - [27/Apr/2011 11:12:35] "GET /media/downloads/betha/ essencial/sybase9/windows32/win32.rar HTTP/1.1" 500 - Traceback (most recent call last): File "/usr/local/lib/python2.6/dist-packages/django/core/servers/