Paginator der besser ins Design passt.

This commit is contained in:
Christian Berg
2014-12-10 00:23:36 +01:00
parent 2011d3ce25
commit 711c303f9a
75 changed files with 675 additions and 1599 deletions

View File

@@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
from django.core.management.base import BaseCommand
from membership.models import ActivationRequest

View File

@@ -8,11 +8,12 @@ It might help your debugging to know or you might want to contact the user to
tell them you have fixed the problem.
"""
from optparse import make_option
from django.conf import settings
from django.contrib import auth
from django.contrib.sessions.models import Session
from django.core.management.base import BaseCommand
from optparse import make_option
class Command(BaseCommand):
@@ -45,7 +46,8 @@ class Command(BaseCommand):
self.stderr.write('Session "%s" does not exist' % session_key)
continue
except settings.AUTH_USER_MODEL.DoesNotExist:
self.stderr.write('Session "%s" has no registed User' % session_key)
self.stderr.write(
'Session "%s" has no registed User' % session_key)
continue
if options['delete']:
self.stdout.write('deleting %s' % user.username)