Created
May 31, 2010 06:31
-
-
Save justjkk/419600 to your computer and use it in GitHub Desktop.
Scribbles of Python scripts that are used in wtfimb shell
This file contains hidden or 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
''' Python Script to show changes to Stages ''' | |
STAGE = 12 # content_type id differs from one database copy to another | |
from stages.models import Stage | |
from reversion.models import Version | |
[[Stage.objects.get(pk=s.object_id).display_name,s.revision.date_created.__str__()] for s in Version.objects.filter(revision__user__isnull = False).filter(content_type=STAGE)] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment