djangosnippets.org: Latest snippets tagged with 'notmm'https://djangosnippets.org/tags/notmm/2009-01-19T14:40:40.150724-06:00Formalchemy hack for newforms-based form validation
2009-01-19T14:40:40.150724-06:00erobhttps://djangosnippets.org/snippets/1291/<p>Very simple proof-of-concept that uses the django.forms library (newforms) for validation,
and formalchemy for saving the model instance using sqlalchemy.</p>
<p>it can be used like this (pseudo-code):</p>
<p>if form.is_valid():
form.save(session=Session, app_label='Contact')</p>
<p>Feel free to improve the concept. Ideally, either use formalchemy or django.forms
but not both like this example. ;-)</p>
Freely redistributable