Re: Call SQL function within Model

2011-06-28 Thread Martin J. Laubach
You probably want to use something like https://docs.djangoproject.com/en/1.3/ref/models/querysets/#extra to add custom sql expressions to your querysets. mjl -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this

Call SQL function within Model

2011-06-27 Thread Naoko Reeves
Dear Experts, I am using postgresql and have field type bytea. This is an encrypted field I normally decrypt value with sql function. I would like to use this function to return value from Django model. Is this possible? If so could you guide me how could I accomplish this? Thank you very much