Adrian Holovaty wrote:
> That's pretty much it. Let me know if you decide to take this on...We
> should coordinate which fields we're taking.

I'm attached new unit-tests and the first version of the patch to the ticket
(http://code.djangoproject.com/ticket/1553). Take a look.


Not implemented:

 * FileField
 * ImageField

I'm not sure what to_python should return for this type of fields, file path 
(MEDIA_ROOT relative) or the file itself
(file-like object)?

 * FilePathField
 * PhoneNumberField (trivial: validators.isValidPhone, extend to accept regex 
for phone_re to accommodate other phone
formats)
 * USStateField (trivial: validators.isValidUSState)
 * XMLField (hmmm, validators.RelaxNGCompact I presume)

 * ForeignKey
 * ManyToManyField

For them I don't have a clue what to do. How to convert field_data (in 
to_python) to actual object(s)?

 * OneToOneField

As above with additional check that no other record can have the same ID.

Also, all fields have not checked for cases where unique=True or unique_for_* 
is set. I must somehow get hold (in
validate()) of the model default manager to be able execute query to check that 
this value don't already exists for
given criteria.

-- 
Nebojša Đorđević - nesh
Studio Quattro - Niš - SCG
http://studioquattro.biz/
http://djnesh.blogspot.com/  |  http://djnesh-django.blogspot.com/ |  
http://djangoutils.python-hosting.com/
Registered Linux User 282159 [http://counter.li.org]

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-developers
-~----------~----~----~----~------~----~------~--~---

Reply via email to