http://www.djangosnippets.org/snippets/377/
I've been using a slightly modified version of this JSONField snippet
for a while now, and it's been really useful for storing info that
doesn't quite fit a field field. I had to make these changes to get
it to work in .96 and let the admin edit the model (it still ignores
the field).
def __init__(self,*args,**kwargs):
super(cJSONField,self).__init__(*args,**kwargs)
self.editable=False
def get_internal_type(self):
return 'TextField'
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" 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-users?hl=en
-~----------~----~----~----~------~----~------~--~---