Created
October 10, 2012 04:18
-
-
Save pipermerriam/3863124 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Listing(...): | |
def upgrade(self): | |
return self.__class__.objects.select_subclasses().get(pk=self.pk) | |
listing = Listing.objects.get(pk=1) | |
buyerlisting = listing.upgrade() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment