mirror of
https://github.com/Hopiu/django-notifications.git
synced 2026-05-22 19:25:51 +00:00
10 lines
184 B
Python
10 lines
184 B
Python
"""' Django notifications utils file """
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
|
def slug2id(slug):
|
|
return int(slug) - 110909
|
|
|
|
|
|
def id2slug(notification_id):
|
|
return notification_id + 110909
|