File tree 4 files changed +6
-8
lines changed
tickets/management/commands
4 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -27,4 +27,4 @@ class Device(TimeAuditModel):
27
27
)
28
28
29
29
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):
57
57
conference = models .ForeignKey (Conference , on_delete = models .CASCADE )
58
58
59
59
def __unicode__ (self ):
60
- return u "{} - {} on {} from {} to {} in {}" .format (
60
+ return "{} - {} on {} from {} to {} in {}" .format (
61
61
self .conference ,
62
62
self .name ,
63
63
self .event_date ,
@@ -90,9 +90,7 @@ def to_response(self, request):
90
90
}
91
91
if self .session :
92
92
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 )
96
94
data ["session" ] = {
97
95
"id" : session .id ,
98
96
"title" : session .title ,
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ class Explara(object):
12
12
13
13
def __init__ (self , access_token ):
14
14
self .access_token = access_token
15
- self .headers = {"Authorization" : u "Bearer " + self .access_token }
15
+ self .headers = {"Authorization" : "Bearer " + self .access_token }
16
16
self .base_url = "https://www.explara.com/api/e/{0}"
17
17
18
18
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):
160
160
self .client .credentials (HTTP_AUTHORIZATION = "Token " + str (self .device .uuid ))
161
161
res = self .client .post ("/api/v1/feedback/" , data , format = "json" )
162
162
163
- msg = u "The multiple choice value isn't associated with question"
163
+ msg = "The multiple choice value isn't associated with question"
164
164
165
165
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 ]}]}
167
167
168
168
def test_feedback_with_missing_required_text_data (self ):
169
169
choice = [
You can’t perform that action at this time.
0 commit comments