File tree Expand file tree Collapse file tree 4 files changed +6
-8
lines changed
tickets/management/commands Expand file tree Collapse file tree 4 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -27,4 +27,4 @@ class Device(TimeAuditModel):
2727 )
2828
2929 def __unicode__ (self ):
30- return u "uuid: {}, is_verified: {}" .format (self .uuid , self .is_verified )
30+ return "uuid: {}, is_verified: {}" .format (self .uuid , self .is_verified )
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ class ScheduleItem(AuditModel):
5757 conference = models .ForeignKey (Conference , on_delete = models .CASCADE )
5858
5959 def __unicode__ (self ):
60- return u "{} - {} on {} from {} to {} in {}" .format (
60+ return "{} - {} on {} from {} to {} in {}" .format (
6161 self .conference ,
6262 self .name ,
6363 self .event_date ,
@@ -90,9 +90,7 @@ def to_response(self, request):
9090 }
9191 if self .session :
9292 session = self .session
93- author = u"{} {}" .format (
94- session .author .first_name , session .author .last_name
95- )
93+ author = "{} {}" .format (session .author .first_name , session .author .last_name )
9694 data ["session" ] = {
9795 "id" : session .id ,
9896 "title" : session .title ,
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ class Explara(object):
1212
1313 def __init__ (self , access_token ):
1414 self .access_token = access_token
15- self .headers = {"Authorization" : u "Bearer " + self .access_token }
15+ self .headers = {"Authorization" : "Bearer " + self .access_token }
1616 self .base_url = "https://www.explara.com/api/e/{0}"
1717
1818 def get_events (self ):
Original file line number Diff line number Diff line change @@ -160,10 +160,10 @@ def test_feedback_with_wrong_choice_value(self):
160160 self .client .credentials (HTTP_AUTHORIZATION = "Token " + str (self .device .uuid ))
161161 res = self .client .post ("/api/v1/feedback/" , data , format = "json" )
162162
163- msg = u "The multiple choice value isn't associated with question"
163+ msg = "The multiple choice value isn't associated with question"
164164
165165 assert res .status_code == status .HTTP_400_BAD_REQUEST
166- assert res .data == {"choices" : [{u "non_field_errors" : [msg ]}]}
166+ assert res .data == {"choices" : [{"non_field_errors" : [msg ]}]}
167167
168168 def test_feedback_with_missing_required_text_data (self ):
169169 choice = [
You can’t perform that action at this time.
0 commit comments