Hi King,
I'm learning this thing here too so don't worry :)
On 9 June 2011 19:54, King wrote:
> Hi David,
> I'm having some trouble understanding your reply
>
> class Like(db.Model):
>> topic = db.StringProperty() #enumeration
>> user = db.ReferenceProperty(User)
>>
>
> By enumeration,
Hi David,
I'm having some trouble understanding your reply
> class Like(db.Model):
> topic = db.StringProperty() #enumeration
> user = db.ReferenceProperty(User)
>
By enumeration, do you mean a number representing the thing being liked?
So for example
topic = 5
(where 5 might mean "Dogs"
Depending on your entity group/transaction strategy here you might want to
consider Referencing Users to a Dislike/Like Kind:
http://code.google.com/appengine/docs/python/datastore/datamodeling.html#References
What happens is (and premature i can say so) your like, dislikes properties
are going t
Hi all :)
Let's say I have a app called "Opposites Attract". And in it I have a *User
* model, and each user has a list of *Likes* and a list of *Dislikes*.
Each USER can have a maximum of:
- 200 Likes.
- 200 Dislikes.
I want to query this information to find out for a given *Like*, what other