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