mirror of
https://github.com/HamzaSha1/zod-backend.git
synced 2025-07-17 02:45:08 +00:00
list, view, edit api for article
This commit is contained in:
13
web_admin/utils.py
Normal file
13
web_admin/utils.py
Normal 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
|
Reference in New Issue
Block a user