How do I use a ListProperty(users.user) in a djangoforms.ModelForm on Google AppEngine?
- by Gabriel
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:
What is the best way to associate users to this value where they are not authenticated, visa vi invite from contacts list etc.?
Is there a reasonable way to present a list control easily in a djangoforms.ModelForm?
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?
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?