File: __init__.py

package info (click to toggle)
django-notification 1.2.0-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 296 kB
  • sloc: python: 873; makefile: 113
file content (8 lines) | stat: -rw-r--r-- 179 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
from ..models import NOTICE_MEDIA


def get_backend_id(backend_name):
    for bid, bname in NOTICE_MEDIA:
        if bname == backend_name:
            return bid
    return None