Skip to content

Instantly share code, notes, and snippets.

@gthomas
Created December 10, 2009 01:15
Show Gist options
  • Save gthomas/253020 to your computer and use it in GitHub Desktop.
Save gthomas/253020 to your computer and use it in GitHub Desktop.
data_classes = [Product] + PRODUCT_DATA_CLASSES
for product_data_class in data_classes:
if not revision.is_registered(product_data_class):
revision.register(product_data_class)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment