Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

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(
class Meta(object):
abstract = True
Jump to Line
Something went wrong with that request. Please try again.