Ticket #5892: 5892.diff
File 5892.diff, 623 bytes (added by , 17 years ago) |
---|
-
docs/custom_model_fields.txt
233 233 metaclass. This ensures that the ``to_python()`` method, documented below_, 234 234 will always be called when the attribute is initialised. 235 235 236 Our ``Hand leField`` class now looks like this::236 Our ``HandField`` class now looks like this:: 237 237 238 class Hand leField(models.Field):238 class HandField(models.Field): 239 239 __metaclass__ = models.SubfieldBase 240 240 241 241 def __init__(self, *args, **kwargs):