Revision history [back]
Made a similar change in commit (https://github.com/ASKBOT/askbot-devel/commit/038ce1c4452a66a26ef09e04a486ec9105e7a686):
def user_get_personal_group(self):
group_name = format_personal_group_name(self)
try:
#may be absent if askbot is added to pre-existing site
return Group.objects.get(name=group_name)
except Group.DoesNotExist:
self.join_default_groups()
return Group.objects.get(name=group_name)