Commits

Anonymous committed b9c333c Merge

merged

Comments (0)

Files changed (2)

 from conference.web.models import *
 from tagging.forms import TagField
 from django.utils.safestring import mark_safe
+from django.db.models import Q
 
 __all__ = ['Adduserform', 'Edituserform', 'TempRegisterform', 'Addtalkform',
            'Edittalkform', 'Talkratingform', 'Addvolunteerform', 'Addrequesttalkform',
            'Bulkmailform', 'ScheduleForm', 'Translateform']
+           
+def getname(user):
+    fname = ''
+    try:
+        fname = user.username.first_name
+    except:
+        pass
+    return user.username.last_name+' '+fname
 
 class Adduserform(forms.Form):
     """
     return HttpResponseRedirect('/schedule/')
 
 
-def getname(user):
-    fname = ''
-    try:
-        fname = user.username.first_name
-    except:
-        pass
-    return user.username.last_name+' '+fname
+
 
 
 @user_passes_test(lambda u: isingroup(u,'committee') == True,login_url="/login/")