Created
May 12, 2011 15:45
-
-
Save emilepetrone/968794 to your computer and use it in GitHub Desktop.
Date Dictionary
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
meal = get_object_or_404(Meal, id=meal_id) | |
date_dictionary = ['Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sunday'] | |
mealdate = date_dictionary[meal.date.weekday()] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment