##// END OF EJS Templates
Merged in tenno-seremel/neboard/tenno-seremel/cleaner-box-shadow-for-post-in-snow-whit-1506516254268 (pull request #25)...
Merged in tenno-seremel/neboard/tenno-seremel/cleaner-box-shadow-for-post-in-snow-whit-1506516254268 (pull request #25) Cleaner box shadow for .post in Snow White theme.

File last commit:

r1616:21816ae5 default
r1925:75d347ed merge default
Show More
archive_threads.py
16 lines | 348 B | text/x-python | PythonLexer
from django.core.management import BaseCommand
from django.db import transaction
from django.db.models import Count
from boards.models import Thread
__author__ = 'neko259'
class Command(BaseCommand):
help = 'Archive old threads'
@transaction.atomic
def handle(self, *args, **options):
Thread.objects.process_old_threads()