diff options
Diffstat (limited to 'django/newforms/models.py')
| -rw-r--r-- | django/newforms/models.py | 13 |
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 |
