mirror of
https://github.com/Hopiu/django-notifications.git
synced 2026-03-17 05:40:25 +00:00
13 lines
167 B
Python
13 lines
167 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
import sys
|
|
if sys.version > '3':
|
|
long = int
|
|
|
|
|
|
def slug2id(slug):
|
|
return long(slug) - 110909
|
|
|
|
|
|
def id2slug(id):
|
|
return id + 110909
|