Add home for users and clubs

This commit is contained in:
Skia
2016-08-10 16:23:12 +02:00
parent 830c15a585
commit a8858fa781
11 changed files with 132 additions and 37 deletions

View File

@ -54,6 +54,7 @@ class Subscription(models.Model):
from counter.models import Customer
if not Customer.objects.filter(user=self.member).exists():
Customer(user=self.member, account_id=Customer.generate_account_id(self.id), amount=0).save()
self.member.make_home()
def get_absolute_url(self):
return reverse('core:user_profile', kwargs={'user_id': self.member.pk})