Subscriptions: implement live subscriptions for collection items

This commit is contained in:
Tom Hacohen
2021-01-04 10:02:47 +02:00
parent cd4131e890
commit f52facad1c
6 changed files with 198 additions and 1 deletions

View File

@@ -11,6 +11,8 @@
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import typing as t
from django.utils.functional import cached_property
@@ -31,6 +33,10 @@ class AppSettings:
return getattr(settings, self.prefix + name, dflt)
@cached_property
def REDIS_URI(self) -> t.Optional[str]: # pylint: disable=invalid-name
return self._setting("REDIS_URI", None)
@cached_property
def API_PERMISSIONS_READ(self): # pylint: disable=invalid-name
perms = self._setting("API_PERMISSIONS_READ", tuple())