mirror of
https://github.com/Hopiu/django.git
synced 2026-05-25 15:23:51 +00:00
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4103 bcc190cf-cafb-0310-a4f2-bffc1f526a37
13 lines
411 B
Python
13 lines
411 B
Python
"""
|
|
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
|