Skip to content

Commit 8c13da5

Browse files
committed
remove old comments and unused code
1 parent 41bba6c commit 8c13da5

File tree

4 files changed

+0
-26
lines changed

4 files changed

+0
-26
lines changed

project/access/models.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
from django.db import models, transaction
33
from django.utils.translation import ugettext_lazy as _
44
from django_markdown.models import MarkdownField
5-
# importing after asylum.mixins to get the monkeypatching done there
65
from reversion import revisions
76

87
from asylum.models import AsylumModel

project/members/admin.py

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -148,17 +148,6 @@ def queryset(self, request, queryset):
148148
return queryset.filter(tags=v)
149149

150150

151-
def mtypes_choices():
152-
return itertools.chain((('', '----'), ), ((x.pk, x.label) for x in MemberType.objects.all()))
153-
154-
155-
class MembershipApplicationsForm(admin.helpers.ActionForm):
156-
mtypes = forms.MultipleChoiceField(
157-
label=_("Membership types"), # TODO: Read from the member model meta ?
158-
choices=lazy(mtypes_choices, tuple)
159-
)
160-
161-
162151
class MembershipApplicationAdmin(VersionAdmin):
163152
list_display = (
164153
'rname',
@@ -167,23 +156,12 @@ class MembershipApplicationAdmin(VersionAdmin):
167156
'tags_formatted',
168157
)
169158
list_filter = (TagListFilter,)
170-
actions = ['approve_selected']
171-
action_form = MembershipApplicationsForm
172159
search_fields = ['lname', 'fname', 'email', 'nick']
173160

174161
def tags_formatted(self, obj):
175162
return ', '.join((x.label for x in obj.tags.all()))
176163
tags_formatted.short_description = _("Tags")
177164

178-
def approve_selected(modeladmin, request, queryset):
179-
add_types = []
180-
for x in request.POST.getlist('mtypes'):
181-
if x:
182-
add_types.append(int(x))
183-
for a in queryset.all():
184-
a.approve(add_types)
185-
approve_selected.short_description = _("Approve selected applications")
186-
187165

188166
class MembershipApplicationTagAdmin(VersionAdmin):
189167
pass

project/members/models.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
from django.utils import timezone
1010
from django.utils.translation import ugettext_lazy as _
1111
from django_markdown.models import MarkdownField
12-
# importing after asylum.mixins to get the monkeypatching done there
1312
from reversion import revisions
1413

1514
from asylum.models import AsylumModel

project/ndaparser/models.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# -*- coding: utf-8 -*-
22
from django.db import models, transaction
3-
# importing after asylum.mixins to get the monkeypatching done there
4-
from reversion import revisions
53

64
from asylum.models import AsylumModel
75

0 commit comments

Comments
 (0)