1 from forum.models import User, SubscriptionSettings, QuestionSubscription
\r
2 from django.core.management.base import NoArgsCommand
\r
4 class Command(NoArgsCommand):
\r
5 def handle_noargs(self, **options):
\r
6 users = User.objects.all()
\r
8 s = SubscriptionSettings(user=u)
\r
11 user_questions = u.questions.all()
\r
13 for q in user_questions:
\r
14 sub = QuestionSubscription(user=u, question=q)
\r