Rafał Pitoń 11 лет назад
Родитель
Сommit
fc60e42153

+ 3 - 3
docs/developers/settings.rst

@@ -196,10 +196,10 @@ MISAGO_AVATARS_SIZES
 Misago uses avatar cache that prescales avatars to requested sizes. Enter here sizes to which those should be optimized.
 
 
-MISAGO_INITIALS_AVATAR_FUNCTION
--------------------------------
+MISAGO_USER_AVATAR_DRAWER
+-------------------------
 
-Function used to create initials avatar for this user. Allows for customization of algorithm used to generate those.
+Function used to create unique avatar for this user. Allows for customization of algorithm used to generate those.
 
 
 MISAGO_MAILER_BATCH_SIZE

+ 2 - 1
misago/conf/defaults.py

@@ -223,9 +223,10 @@ MISAGO_ADMIN_SESSION_EXPIRATION = 60
 
 
 # Function used for generating individual avatar for user
-MISAGO_INITIALS_AVATAR_FUNCTION = 'misago.users.avatars.initials.set_user_avatar'
+MISAGO_USER_AVATAR_DRAWER = 'misago.users.avatars.user.draw_default'
 
 # For which sizes avatars should be cached?
+# Keep sizes ordered from greatest to smallest
 MISAGO_AVATARS_SIZES = (150, 100, 64, 50, 30, 20)
 
 

+ 1 - 1
misago/users/migrations/0002_users_settings.py

@@ -96,7 +96,7 @@ def create_users_settings_group(apps, schema_editor):
                     'form_field': 'select',
                     'field_extra': {
                         'choices': (
-                            ('initials', _("Initials")),
+                            ('user', _("Individual")),
                             ('gravatar', _("Gravatar")),
                             ('gallery', _("Random avatar from gallery")),
                         ),