File tree 3 files changed +5
-5
lines changed
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -26,5 +26,5 @@ class Device(TimeAuditModel):
26
26
verbose_name = "Verification Code Expires At" , default = expiry_time
27
27
)
28
28
29
- def __unicode__ (self ):
30
- return u "uuid: {}, is_verified: {}" .format (self .uuid , self .is_verified )
29
+ def __str__ (self ):
30
+ return "uuid: {}, is_verified: {}" .format (self .uuid , self .is_verified )
Original file line number Diff line number Diff line change @@ -13,5 +13,5 @@ class Profile(AuditModel):
13
13
city = models .CharField (max_length = 100 , blank = True , null = True )
14
14
contact_no = models .CharField (max_length = 15 , blank = True , null = True )
15
15
16
- def __unicode__ (self ):
16
+ def __str__ (self ):
17
17
return self .user .username
Original file line number Diff line number Diff line change @@ -54,8 +54,8 @@ class ScheduleItem(AuditModel):
54
54
55
55
conference = models .ForeignKey (Conference , on_delete = models .CASCADE )
56
56
57
- def __unicode__ (self ):
58
- return u "{} - {} on {} from {} to {} in {}" .format (
57
+ def __str__ (self ):
58
+ return "{} - {} on {} from {} to {} in {}" .format (
59
59
self .conference ,
60
60
self .name ,
61
61
self .event_date ,
You can’t perform that action at this time.
0 commit comments