forked from gergely/calendar-social
Make it possible to use builtin avatars
Images are from openclipart.org
This commit is contained in:
@@ -78,6 +78,16 @@ class CalendarSocialApp(Flask, RoutedMixin):
|
||||
self.config['SECURITY_USER_IDENTITY_ATTRIBUTES'] = ('username', 'email')
|
||||
self.config['SECURITY_LOGIN_USER_TEMPLATE'] = 'login.html'
|
||||
|
||||
# The builtin avatars to use
|
||||
self.config['BUILTIN_AVATARS'] = (
|
||||
'doctor',
|
||||
'engineer',
|
||||
'scientist',
|
||||
'statistician',
|
||||
'user',
|
||||
'whoami',
|
||||
)
|
||||
|
||||
self.jinja_env.policies['ext.i18n.trimmed'] = True # pylint: disable=no-member
|
||||
|
||||
db.init_app(self)
|
||||
|
Reference in New Issue
Block a user