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:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user