Skip to content

Instantly share code, notes, and snippets.

@myusuf3
Created October 29, 2012 18:45
example of function resolution
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