renamed function to get_weekdays

This commit is contained in:
Himanshu Warekar 2019-02-21 11:17:52 +05:30
parent a6ce45240d
commit 121ffc0cf7

View file

@ -253,7 +253,7 @@ def format_datetime(datetime_string, format_string=None):
formatted_datetime = datetime.strftime('%Y-%m-%d %H:%M:%S')
return formatted_datetime
def weekdays():
def get_weekdays():
return ['Monday', 'Tuesday', 'Wednesday', 'Thursday','Friday', 'Saturday', 'Sunday']
def global_date_format(date, format="long"):