Skip to content
Browse files

Style cleanup

  • Loading branch information...
1 parent 21661c0 commit a9db689dafe5fd1c6789e79ff6699432adca149d @paltman paltman committed
Showing with 11 additions and 9 deletions.
  1. +3 −3 kaleo/admin.py
  2. +0 −1 kaleo/forms.py
  3. +3 −1 kaleo/stats.py
  4. +3 −1 kaleo/templates/kaleo/_invite_form.html
  5. +1 −3 kaleo/templatetags/kaleo_tags.py
  6. +1 −0 kaleo/views.py
View
6 kaleo/admin.py
@@ -11,8 +11,8 @@ class InvitationStatAdmin(admin.ModelAdmin):
admin.site.register(JoinInvitation,
- list_display = ["from_user", "to_user", "sent", "status", "to_user_email"],
- list_filter = ["sent", "status"],
- search_fields = ["from_user__username"]
+ list_display=["from_user", "to_user", "sent", "status", "to_user_email"],
+ list_filter=["sent", "status"],
+ search_fields=["from_user__username"]
)
admin.site.register(InvitationStat, InvitationStatAdmin)
View
1 kaleo/forms.py
@@ -2,5 +2,4 @@
class InviteForm(forms.Form):
-
email_address = forms.EmailField()
View
4 kaleo/stats.py
@@ -4,5 +4,7 @@
def stats():
return {
"join_invitations_sent": JoinInvitation.objects.count(),
- "join_invitations_accepted": JoinInvitation.objects.filter(status=JoinInvitation.STATUS_ACCEPTED).count()
+ "join_invitations_accepted": JoinInvitation.objects.filter(
+ status=JoinInvitation.STATUS_ACCEPTED
+ ).count()
}
View
4 kaleo/templates/kaleo/_invite_form.html
@@ -1,4 +1,6 @@
-{% load bootstrap_tags %}{% load url from future %}
+{% load bootstrap_tags %}
+{% load url from future %}
+
<div id="invitation-form-messages"></div>
<div class="invitation_form">
{% if user.invitationstat.can_send %}
View
4 kaleo/templatetags/kaleo_tags.py
@@ -15,9 +15,7 @@ def handle_token(cls, parser, token):
if len(bits) != 2:
raise template.TemplateSyntaxError
- return cls(
- user = parser.compile_filter(bits[1])
- )
+ return cls(user=parser.compile_filter(bits[1]))
def __init__(self, user):
self.user = user
View
1 kaleo/views.py
@@ -3,6 +3,7 @@
from django.views.decorators.http import require_http_methods
from account.models import EmailAddress
+
from kaleo.forms import InviteForm
from kaleo.models import JoinInvitation

0 comments on commit a9db689

Please sign in to comment.
Something went wrong with that request. Please try again.