| 1 |
Index: docs/custom_model_fields.txt |
|---|
| 2 |
=================================================================== |
|---|
| 3 |
--- docs/custom_model_fields.txt (revision 6668) |
|---|
| 4 |
+++ docs/custom_model_fields.txt (working copy) |
|---|
| 5 |
@@ -233,9 +233,9 @@ |
|---|
| 6 |
metaclass. This ensures that the ``to_python()`` method, documented below_, |
|---|
| 7 |
will always be called when the attribute is initialised. |
|---|
| 8 |
|
|---|
| 9 |
-Our ``HandleField`` class now looks like this:: |
|---|
| 10 |
+Our ``HandField`` class now looks like this:: |
|---|
| 11 |
|
|---|
| 12 |
- class HandleField(models.Field): |
|---|
| 13 |
+ class HandField(models.Field): |
|---|
| 14 |
__metaclass__ = models.SubfieldBase |
|---|
| 15 |
|
|---|
| 16 |
def __init__(self, *args, **kwargs): |
|---|