Add a member_context to all requeests
authorMagnus Hagander <magnus@hagander.net>
Mon, 3 Sep 2018 07:57:00 +0000 (09:57 +0200)
committerMagnus Hagander <magnus@hagander.net>
Mon, 3 Sep 2018 07:57:00 +0000 (09:57 +0200)
commitafd1417ef60e32d21ae0d18e89003e89ab08cf62
tree4f3c5e1dd3f454aa333cf1a901b673b7f561c85a
parent1d273955bd67d2e2c5a09f0082889483ad75ac49
Add a member_context to all requeests

This adds a lazy object "member" which accesses the membershpi
information for the currently logged in user (if logged in). It's lazy
evaluated so we don't end up querying the database for it unless needed.
postgresqleu/settings.py
postgresqleu/util/context_processors.py