list, view, edit api for article

This commit is contained in:
abutalib-kiwi
2023-07-14 18:47:07 +05:30
parent a4d9997580
commit 45410fa0ca
6 changed files with 136 additions and 26 deletions

13
web_admin/utils.py Normal file
View File

@ -0,0 +1,13 @@
"""
web_utils file
"""
def pop_id(data):
"""
to pop id, not in use
:param data:
:return: data
"""
data.pop('id') if 'id' in data else data
return data