I study flask-security
. Quickstart
has this code:
class UserRoles(db.Model): # Because peewee does not come with built-in many-to-many # relationships, we need this intermediary class to link # user to roles. user = ForeignKeyField(User, related_name='roles') role = ForeignKeyField(Role, related_name='users') name = property(lambda self: self.role.name) description = property(lambda self: self.role.description)
I just can't understand what the strings do
name = property(lambda self: self.role.name) description = property(lambda self: self.role.description)
Where does the property function come from, and in general, what happens in these lines?