1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-10-21 19:00:12 +00:00

show empty tip when no terms (#8294)

* show empty tip when no terms

* update
This commit is contained in:
lian
2025-10-11 15:34:53 +08:00
committed by GitHub
parent 25769afb0d
commit b4c5cd81ea
3 changed files with 22 additions and 8 deletions

View File

@@ -74,7 +74,7 @@ class TermsAndConditions(models.Model):
date_active__lte=timezone.now(),
slug=slug).latest('date_active')
except TermsAndConditions.DoesNotExist:
raise Http404
active_terms = None
return active_terms