Add some API views for receiving, and vendor autocomplete

lots more to do yet, for those...
This commit is contained in:
Lance Edgar 2019-11-12 11:55:28 -06:00
parent afdd294c60
commit 3514c4050e
7 changed files with 409 additions and 130 deletions

View file

@ -63,3 +63,8 @@ class APIView(View):
"""
Base class for all API views.
"""
def pretty_datetime(self, dt):
if not dt:
return ""
return dt.strftime('%Y-%m-%d @ %I:%M %p')