certral execution: final phase

This commit is contained in:
usmannasir
2019-04-15 15:54:23 +05:00
parent ed68d45a14
commit 4a146441a8
25 changed files with 728 additions and 175 deletions

View File

@@ -227,8 +227,11 @@ def deleteWebsite(request):
website = Websites.objects.get(domain=data['websiteName'])
websiteOwner = website.admin
if admin.websites_set.all().count() == 0:
websiteOwner.delete()
try:
if admin.websites_set.all().count() == 0:
websiteOwner.delete()
except:
pass
## Deleting master domain