|
@@ -63,7 +63,7 @@ class TenantViewSet(CustomModelViewSet):
|
|
|
if user:
|
|
|
user.type = User.SUPER
|
|
|
user.save()
|
|
|
- Employee.objects.filter(user=user).update(tenant=tenant, type=Employee.SUPER)
|
|
|
+ Employee.objects.filter(user=user).update(tenant=tenant,name=name, type=Employee.SUPER)
|
|
|
else:
|
|
|
user = Employee.create_super_admin(tenant, name, username, password)
|
|
|
option_data1 = {
|
|
@@ -156,6 +156,7 @@ class MemberRemindViewSet(APIView):
|
|
|
'title': '会员到期提醒,请点击查看!',
|
|
|
'content': '您的会员还有{0}天到期!请及时续费,以免影响您的正常使用!'.format(diff),
|
|
|
'tenant': tenant,
|
|
|
+ 'create_user': request.user,
|
|
|
'type': Notices.RENEW,
|
|
|
'range': Notices.ADMIN,
|
|
|
# 'end_time': (timezone.now() + datetime.timedelta(days=int(diff))).strftime('%Y-%m-%d'),
|