Created
October 29, 2012 18:45
-
-
Save myusuf3/3975631 to your computer and use it in GitHub Desktop.
example of function resolution
This file contains 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
from django.db import models | |
from datetime import datetime | |
class AwesomePeople(models.Model): | |
# this will always be the date the code was loaded. | |
date_create = models.DatetimeField(default=datetime.today()) | |
name = models.CharField(max_length=100) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment