comparison bio/models.py @ 919:0b6bf9c5a982

Bio app refactor. For Django 1.7.7 upgrade.
author Brian Neal <bgneal@gmail.com>
date Mon, 06 Apr 2015 20:33:10 -0500
parents 9e803323a0d0
children eeaf387803c6
comparison
equal deleted inserted replaced
918:886234943aed 919:0b6bf9c5a982
11 from django.core.cache import cache 11 from django.core.cache import cache
12 from django.template.loader import render_to_string 12 from django.template.loader import render_to_string
13 13
14 from core.markup import SiteMarkup 14 from core.markup import SiteMarkup
15 import bio.flags 15 import bio.flags
16 from bio.signals import notify_profile_content_update
16 17
17 18
18 # These are the secondary user status enumeration values. 19 # These are the secondary user status enumeration values.
19 (STA_ACTIVE, # User is a full member in good standing. 20 (STA_ACTIVE, # User is a full member in good standing.
20 STA_RESIGNED, # User has voluntarily asked to be removed. 21 STA_RESIGNED, # User has voluntarily asked to be removed.
219 220
220 def badge_count_str(self): 221 def badge_count_str(self):
221 if self.count == 1: 222 if self.count == 1:
222 return u"1 %s" % self.badge.name 223 return u"1 %s" % self.badge.name
223 return u"%d %ss" % (self.count, self.badge.name) 224 return u"%d %ss" % (self.count, self.badge.name)
224
225 # Put down here to avoid a circular import
226 from bio.signals import notify_profile_content_update