mirror of
https://github.com/Hopiu/django-notifications.git
synced 2026-04-06 06:41:00 +00:00
7 lines
116 B
Python
7 lines
116 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
def slug2id(slug):
|
|
return long(slug) - 110909
|
|
|
|
def id2slug(id):
|
|
return id + 110909
|