|
1 |
| -from django.shortcuts import render, get_object_or_404 |
2 |
| -from django.http import HttpResponse, HttpResponseRedirect |
3 |
| -from django.http import Http404, HttpResponseForbidden |
4 |
| -from django.views.decorators.csrf import csrf_exempt |
5 |
| -from django.db import transaction, connection |
6 |
| -from django.db.models import Q |
| 1 | +from django.conf import settings |
7 | 2 | from django.contrib import messages
|
8 | 3 | from django.contrib.auth.decorators import login_required
|
9 | 4 | from django.contrib.auth.models import User
|
| 5 | +from django.db import connection, transaction |
| 6 | +from django.db.models import Q |
| 7 | +from django.http import ( |
| 8 | + Http404, |
| 9 | + HttpResponse, |
| 10 | + HttpResponseForbidden, |
| 11 | + HttpResponseRedirect, |
| 12 | +) |
| 13 | +from django.shortcuts import get_object_or_404, render |
| 14 | +from django.views.decorators.csrf import csrf_exempt |
10 | 15 |
|
11 |
| -from django.conf import settings |
12 |
| - |
| 16 | +import hmac |
| 17 | +import json |
| 18 | +import urllib |
13 | 19 | from datetime import datetime
|
14 | 20 | from email.mime.text import MIMEText
|
15 | 21 | from email.utils import formatdate, make_msgid
|
16 |
| -import json |
17 |
| -import hmac |
18 |
| -import urllib |
19 | 22 |
|
20 | 23 | from pgcommitfest.mailqueue.util import send_mail, send_simple_mail
|
21 | 24 | from pgcommitfest.userprofile.util import UserWrapper
|
22 | 25 |
|
| 26 | +from .ajax import _archivesAPI, doAttachThread, refresh_single_thread |
| 27 | +from .feeds import ActivityFeed |
| 28 | +from .forms import ( |
| 29 | + BulkEmailForm, |
| 30 | + CommentForm, |
| 31 | + CommitFestFilterForm, |
| 32 | + NewPatchForm, |
| 33 | + PatchForm, |
| 34 | +) |
23 | 35 | from .models import (
|
| 36 | + CfbotBranch, |
24 | 37 | CommitFest,
|
| 38 | + Committer, |
| 39 | + MailThread, |
25 | 40 | Patch,
|
26 |
| - PatchOnCommitFest, |
27 | 41 | PatchHistory,
|
28 |
| - Committer, |
29 |
| - CfbotBranch, |
| 42 | + PatchOnCommitFest, |
30 | 43 | )
|
31 |
| -from .models import MailThread |
32 |
| -from .forms import PatchForm, NewPatchForm, CommentForm, CommitFestFilterForm |
33 |
| -from .forms import BulkEmailForm |
34 |
| -from .ajax import doAttachThread, refresh_single_thread, _archivesAPI |
35 |
| -from .feeds import ActivityFeed |
36 | 44 |
|
37 | 45 |
|
38 | 46 | def home(request):
|
|
0 commit comments