First Commit
This commit is contained in:
commit
ce0758fbbb
496 changed files with 52062 additions and 0 deletions
7
posts/context_processors.py
Normal file
7
posts/context_processors.py
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
from .models import Post
|
||||
from users.decorators import groups_required
|
||||
|
||||
groups_required('Administrateur', 'SuperAdmin')
|
||||
def pending_posts_count(request):
|
||||
count = Post.objects.filter(active=False).count()
|
||||
return {'pending_posts_count': count}
|
||||
Loading…
Add table
Add a link
Reference in a new issue