예제 #1
0
def action_colors(data):
    for item in data:
        item['color'] = get_color(str(item['action']))
예제 #2
0
def event_colors(data):
    for item in data:
        item['color'] = get_color(str(item['event_id']))
예제 #3
0
 def color(self):
     return get_color(str(self.event_id))
예제 #4
0
파일: models.py 프로젝트: zenny/tendenci
 def color(self):
     return get_color(str(self.event_id))
예제 #5
0
def action_colors(data):
    for item in data:
        item['color'] = get_color(str(item['action']))
예제 #6
0
def event_colors(data):
    for item in data:
        item['color'] = get_color(str(item['event_id']))