Skip to content

Instantly share code, notes, and snippets.

@PuercoPop
Created June 5, 2012 23:42
Show Gist options
  • Save PuercoPop/2878885 to your computer and use it in GitHub Desktop.
Save PuercoPop/2878885 to your computer and use it in GitHub Desktop.
small snippet to replicate circuits in development database
import random
from circuits.models import Circuit
from user_profile.models import UserProfile
circuits = Circuit.objects.all()
users = UserProfile.objects.all()
countdown = 1
while countdown > 0:
circuit = random.choice( circuits )
user = random.choice( users )
circuit.remix(user)
countdown -= 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment