How do I use a ListProperty(users.user) in a djangoforms.ModelForm on Google AppEngine?

Posted by Gabriel on Stack Overflow See other posts from Stack Overflow or by Gabriel
Published on 2010-04-30T07:10:05Z Indexed on 2010/04/30 7:17 UTC
Read the original article Hit count: 318

Filed under:
|
|
|

I have been looking around a bit for info on how to do this. Essentially I have a Model:

class SharableUserAsset(db.Model):
  name = StringProperty()
  users = ListProperty(users.User)

My questions are:

  1. What is the best way to associate users to this value where they are not authenticated, visa vi invite from contacts list etc.?
  2. Is there a reasonable way to present a list control easily in a djangoforms.ModelForm?
  3. Once a user logs in I want to be able to check if that user is in the list for any number of SharableUserAsset class "records", how do I do that?
  4. Does user evaluate as a match to an email address or is there a way to look up a valid user against an email address?

© Stack Overflow or respective owner

Related posts about users

Related posts about python