summaryrefslogtreecommitdiff
path: root/django/newforms/models.py
diff options
context:
space:
mode:
authorJoseph Kocherhans <joseph@jkocherhans.com>2006-11-25 22:37:50 +0000
committerJoseph Kocherhans <joseph@jkocherhans.com>2006-11-25 22:37:50 +0000
commit3afdd8850485c9119b50a5a736d3aa16b7b912fe (patch)
treeaa9663337dfd0c54d97f826bf912aa5a83af3468 /django/newforms/models.py
parent889bf502818df7cbf8332a330703ff97dce01f2d (diff)
[generic-auth] Merged to trunk [4103].
git-svn-id: http://code.djangoproject.com/svn/django/branches/generic-auth@4104 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