Skip to content

Instantly share code, notes, and snippets.

@justjkk
Created May 31, 2010 06:31
Show Gist options
  • Save justjkk/419600 to your computer and use it in GitHub Desktop.
Save justjkk/419600 to your computer and use it in GitHub Desktop.
Scribbles of Python scripts that are used in wtfimb shell
''' 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