Skip to content

Instantly share code, notes, and snippets.

@myusuf3
Created October 29, 2012 18:45
Show Gist options
  • Save myusuf3/3975631 to your computer and use it in GitHub Desktop.
Save myusuf3/3975631 to your computer and use it in GitHub Desktop.
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