summaryrefslogtreecommitdiff
path: root/django/newforms/models.py
diff options
context:
space:
mode:
authorJason Pellerin <jpellerin@gmail.com>2006-12-04 21:12:29 +0000
committerJason Pellerin <jpellerin@gmail.com>2006-12-04 21:12:29 +0000
commit55d7f6519c8d13a685cff3f9873b5784fc511a87 (patch)
tree60fb20e60dbf1f2505cce84f6807f6cdde40e261 /django/newforms/models.py
parent0162eac9e2cd317476dd4086c36caf138c96f6bc (diff)
[multi-db] Merged trunk to [4158]. Some tests still failing.
git-svn-id: http://code.djangoproject.com/svn/django/branches/multiple-db-support@4159 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/newforms/models.py')
-rw-r--r--django/newforms/models.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/django/newforms/models.py b/django/newforms/models.py
new file mode 100644
index 0000000000..d99619c44a
--- /dev/null
+++ b/django/newforms/models.py
@@ -0,0 +1,13 @@
+"""
+Helper functions for creating Forms from Django models and database field objects.
+"""
+
+__all__ = ('form_for_model', 'form_for_fields')
+
+def form_for_model(model):
+ "Returns a Form instance for the given Django model class."
+ raise NotImplementedError
+
+def form_for_fields(field_list):
+ "Returns a Form instance for the given list of Django database field instances."
+ raise NotImplementedError