syncusermonitor.py 430 B

1234567891011
  1. from django.core.management.base import BaseCommand
  2. from django.utils import timezone
  3. from optparse import make_option
  4. from misago.models import User
  5. class Command(BaseCommand):
  6. help = 'Updates forum monitor to contain to date user information'
  7. def handle(self, *args, **options):
  8. User.objects.resync_monitor()
  9. self.stdout.write('\nForum monitor has been updated to contain to date user information.\n')