# HG changeset patch # User Todd Larsen # Date 1226978927 0 # Node ID 65e4d3ed3fc301bea446ba8498ef6101048aea35 # Parent e1e24c0a4e8273eac1c87fd68f65f04a853d53a6 Derive Linkable Model class from PolyModel. Patch by: Todd Larsen diff -r e1e24c0a4e82 -r 65e4d3ed3fc3 app/soc/models/linkable.py --- a/app/soc/models/linkable.py Mon Nov 17 22:21:02 2008 +0000 +++ b/app/soc/models/linkable.py Tue Nov 18 03:28:47 2008 +0000 @@ -23,12 +23,12 @@ import re +import polymodel + from google.appengine.ext import db from django.utils.translation import ugettext_lazy -from soc.models import base - # start with ASCII digit or lowercase # (additional ASCII digit or lowercase @@ -45,7 +45,7 @@ LINK_ID_REGEX = re.compile(LINK_ID_PATTERN) -class Linkable(base.ModelWithFieldAttributes): +class Linkable(polymodel.PolyModel): """A base class for Model classes that are "linkable". Many entities in Melange are identified by a "link path" that is formed