Not being a Python guru by any stretch of the imagination, I have no
idea if the following is a proper way to do it, but adding:
"
def __unicode__(self):
return u'MAC Address'
"
to the MacAddressField class definition does work. For my purposes. As
long as I'm o.k. with the label alway
Greetings,
I'm in the process of porting an application from Django v0.96 (using
Python 2.3) to v1.0 (using Python 2.4). I had been using
django.core.validators, but since that doesn't exist in v1.0 I'm
trying to replace the functionality with a custom field.
The code that I'm using is as follow
2 matches
Mail list logo