Hi, carlos
I just come across the same problem with ifequal and bring into the same
solution with yours that I think is silly too.
I just want to convert the auto-generated id into string to have a simple
correct ifequal test. I simply can not convert strings into integer
because strings
OK, I fixed it, by defining a 'computed' method that returns the int
value in str form. So silly!
def prva_registracija_mm_str (self):
return str(self.prva_registracija_mm)
Ohwell :-)
On 7/17/06, Carlos Yoder <[EMAIL PROTECTED]> wrote:
> Forgot to say, I have the same l
Forgot to say, I have the same logic working with no problem, but for
a CharField, so this issue must be related to the field's datatype...
On 7/17/06, Carlos Yoder <[EMAIL PROTECTED]> wrote:
> Hello there,
>
> I'm using a object_detail generic view to display some data. One of
> the object's fie
Hello there,
I'm using a object_detail generic view to display some data. One of
the object's fields is an IntegerField, with choices limited to
MONTHS, a tuple of tuples mapping the values.
Now, on the template I want to expand the stored values to the
'human_readable' val, using somehting like
4 matches
Mail list logo