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
I was missing this from schema:
ALTER SEQUENCE tablename_colname_seq OWNED BY tablename.colname;
Now everything is happy. Thank you!
On 5/28/11 8:32 AM, "Naoko Reeves" <naokoree...@gmail.com> wrote:
> Malcolm, Thank you for your advice!
> I changed my model as f
28/11 12:23 AM, "Malcolm Box" <malcolm@gmail.com> wrote:
> You need to tell django what the db column name for your pollkey field is.
> Look at the dbname field option in the docs.
>
>
> Sent from my iPhone, please excuse any typos
>
> On 28 May 2011, at 05:13,
mary_key=True handle this for you (instead of
> making it an IntegerField):
>
> https://docs.djangoproject.com/en/1.3/ref/models/fields/#autofield
>
> Hope this helps!
> Casey
>
> On 05/27/2011 07:22 PM, Naoko Reeves wrote:
>> Hi, I have a Django newbie question.
>
rField):
>
> https://docs.djangoproject.com/en/1.3/ref/models/fields/#autofield
>
> Hope this helps!
> Casey
>
> On 05/27/2011 07:22 PM, Naoko Reeves wrote:
>> Hi, I have a Django newbie question.
>> My goal is to auto increment primary key with non Dja
Hi, I have a Django newbie question.
My goal is to auto increment primary key with non Django standard column
name.
We are converting from existing database and primary key schema is
"tablename_key" and not "id".
I googled it and end up reaching to this ticket:
6 matches
Mail list logo