On 14-Jul-06, at 12:01 AM, Jason Murray wrote:
> TypeError: int argument required
put int(value) around all your int values, or refer to int values by %
s and put a str() around them
--
regards
kg
http://lawgon.livejournal.com
http://avsap.org.in
On 7/13/06, Jason Murray <[EMAIL PROTECTED]> wrote:
>File "/home/jmurray/prfa/../prfa/standings/models.py", line 88, in __str__
> return "%s: %i (%i)" % (self.game.datetime.strftime("%Y-%m-%d"),
> self.game.away.number, self.away_runs)
> TypeError: int argument required
This is
Yes it's me again :)
Anyway I've populating my Models with __str_ methods. I've only had on
hicough.
Here is the model in question:
class Result(models.Model):
ID = models.IntegerField(primary_key=True)
home_runs = models.IntegerField("home team runs", null=True, blank=True)
3 matches
Mail list logo