I'd much rather see a contrib app for these. E.g.::

    from django.contrib.datafields import fields as datafields

    class MyModel(models.Model):
        my_yaml = datafields.YAMLField()
    ...

and any refactoring that's necessary to facilitate this cleaning should be
dealt with. (And I think if they subclass TextField they are reasonably easy
to do without too much backend awareness.)

My $0.02,
Mike


On Mon, Dec 15, 2008 at 5:07 PM, David Cramer <dcra...@gmail.com> wrote:
>
> I'd like to propose the addition of some useful (and common) fields in
> the django core. Things like a JSONFied, YAMLField, HTMLField?,
> UUIDField, etc.
>
> A lot of these seem like common things people use, and while many
> examples are out there, it'd be nice to simply include these in core
> so there's a defacto standard.
>
> Maybe at the same time, clean up the Field API if possible :)
> >

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to