gremmie@1: """
bgneal@515: pick_potd is a custom manage.py command for the POTD application.
bgneal@515: Calling it will pick a new POTD.
bgneal@515: 
gremmie@1: """
gremmie@1: from django.core.management.base import NoArgsCommand
gremmie@1: 
bgneal@515: from potd.tools import pick_potd
gremmie@1: 
gremmie@1: 
gremmie@1: class Command(NoArgsCommand):
bgneal@515:     help = "Chooses the next POTD."
gremmie@1: 
gremmie@1:     def handle_noargs(self, **options):
bgneal@515:         pick_potd()