You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

14 lines
351 B

# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.conf import settings
def get_additional_styles():
"""
Get additional styles choices from settings
"""
styles = getattr(settings, 'PEOPLE_PLUGIN_STYLES', '')
choices = [(s.strip().lower(), s.title()) for s in styles.split(',') if s]
return choices