Stored proderures/functions in Django

2009-10-17 Thread Tomas Pelka
Hi gang, I know that Django do not support stored procedures/function, but is here still a chance to handle this stuff in Django? I found this http://www.djangosnippets.org/snippets/272/, have somebody experience with this? Thanks for advices, cheers Tom. -- Tom --~--~-~--~~

Re: Stored proderures/functions in Django

2009-10-18 Thread Tomas Pelka
Good point Jani, thanks. I've forget to raw sql support in Django. Jani Tiainen napsal(a): > Tomas Pelka kirjoitti: >> Hi gang, >> I know that Django do not support stored procedures/function, but is >> here still a chance to handle this stuff in Djang

models.DecimalField causing weird Attribute/Type errors

2013-03-22 Thread Tomas Pelka
odels.DecimalField('Spot?eba elekt?iny (no?n? proud)', max_digits=8, decimal_places=1) el2_delta = models.DecimalField('Spot?eba elekt?iny (no?n? proud) rozd?l', max_digits=4, decimal_places=1, default=1) def __unicode__(self): return self.el1 cla

Re: models.DecimalField causing weird Attribute/Type errors

2013-03-28 Thread Tomas Pelka
Resolved, the __unicode__ did not returned unicode object. Dne pátek, 22. března 2013 10:50:08 UTC+1 Tomas Pelka napsal(a): > > Hi all > > I'm trying to make one of my first apps running but always getting weird > errors Attribute/Type for models.DecimalField as well as f

[django_tables2] Expected table or queryset, not 'str'.

2013-04-09 Thread Tomas Pelka
ValueError at /plyn Expected table or queryset, not 'str'. Request Method:GETRequest URL:http://127.0.0.1:8000/plynDjango Version:1.5Exception Type:ValueErrorException Value: Expected table or queryset, not 'str'. Exception Location:/usr/lib/python2.7/site-packages/django_tables2-0.13.0-py2.

Re: [django_tables2] Expected table or queryset, not 'str'.

2013-04-10 Thread Tomas Pelka
Damn, what is the correct version or other plugin to display nice tables in Django? Thanks Tom Dne středa, 10. dubna 2013 11:08:35 UTC+2 Tom Evans napsal(a): > > On Tue, Apr 9, 2013 at 8:06 PM, Tomas Pelka > > wrote: > > > > ValueError at /plyn > > > >

DateField displayed as (None) in admin

2013-04-10 Thread Tomas Pelka
Hi all, for some reason Dates are displayed as (None) in admin and in shell as well. model.py: # -*- coding: utf-8 -*- from django.db import models from django.contrib import admin class Record(models.Model): date = models.DateField(_('Čas zadání'), null=True, blank=True) #, auto_now=True,

Re: DateField displayed as (None) in admin

2013-04-10 Thread Tomas Pelka
I forgot to mention this is Django 1.5.1. Tom -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group,