File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -26,5 +26,5 @@ class Device(TimeAuditModel):
2626 verbose_name = "Verification Code Expires At" , default = expiry_time
2727 )
2828
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):
1313 city = models .CharField (max_length = 100 , blank = True , null = True )
1414 contact_no = models .CharField (max_length = 15 , blank = True , null = True )
1515
16- def __unicode__ (self ):
16+ def __str__ (self ):
1717 return self .user .username
Original file line number Diff line number Diff line change @@ -54,8 +54,8 @@ class ScheduleItem(AuditModel):
5454
5555 conference = models .ForeignKey (Conference , on_delete = models .CASCADE )
5656
57- def __unicode__ (self ):
58- return u "{} - {} on {} from {} to {} in {}" .format (
57+ def __str__ (self ):
58+ return "{} - {} on {} from {} to {} in {}" .format (
5959 self .conference ,
6060 self .name ,
6161 self .event_date ,
You can’t perform that action at this time.
0 commit comments