Example #1
0
 def __str__(self):
     return str(self.name)
Example #2
0
 def __str__(self):
     return str(getattr(self, self._fields[0]))
Example #3
0
 def __str__(self):
     return str(self.name)
Example #4
0
 def test_str(self):
     account_obj = models.Account(name='Salary')
     assert str(account_obj) == 'Salary'
Example #5
0
 def test_unicode(self):
     account_obj = models.Account(name='משכורת')
     assert str(account_obj) == 'משכורת'
Example #6
0
 def test_str(self):
     account_obj = models.Account(name='Salary')
     assert str(account_obj) == 'Salary'
Example #7
0
 def test_unicode(self):
     account_obj = models.Account(name='משכורת')
     assert str(account_obj) == 'משכורת'