______ ______________ _______
/ \ / \ / \
| DB | -> | PREPROCESSOR | -> | ADMIN |
\______/ \______________/ \_______/
HI pedro,
you can do it creating a custom modelform
https://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.ModelAdmin.form
--
Marc
--
Marc
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
something like
class YourForm(ModelForm):
def __init__(self, *args, **kwargs):
super(YourForm, self).__init__(*args, **kwargs)
self.fields['your_field'].initial = your_postprocess_method()
also you should override the save form method in order to "reverse"
the postprocess and save the data in raw format.
--
Marc
--
Marc
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.