Hi Shay!
Did you try to use ReferenceProperty?
transaction = db.ReferenceProperty(Transaction)
Best Regards,
Jesaja Everling
On Mon, Dec 22, 2008 at 11:09 PM, Shay Ben Dov wrote:
>
> Hi this is the issue
>
> I have a Transaction model
>
> I do:
> transaction=Transaction()
> transaction.
Key to str conversion is not revertible.
On Dec 22, 5:09 pm, Shay Ben Dov wrote:
> Hi this is the issue
>
> I have a Transaction model
>
> I do:
> transaction=Transaction()
> transaction.put()
>
> tr_key = str(transaction.key())
>
> I want to store it in a second mode
>
> class Tag(db.Model)
In your module definition you should use a property class, that is
instead of:
class Tag(db.Model):
transaction = db.Key(encoded=None)
...
you should use:
class Tag(db.Model):
transaction = db.StringProperty(required=True)
...
...if you want to store the string representati