Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

17 lines (12 sloc) 0.419 kB
import datetime
from django.db import models
from django.contrib.auth.models import User
class FavoriteBase(models.Model):
"""
This is the abstract base class that you will subclass to create your own
domain-specific Favorite model.
"""
user = models.ForeignKey(User)
date_created = models.DateTimeField(default=datetime.datetime.now)
class Meta(object):
abstract = True
Jump to Line
Something went wrong with that request. Please try again.