Question: I am developing an application for my company in which i am stuck at thinking what would be the best approach for doing this. 

The company already have a page for survey around 15 questions with multiple choices. Now i have been asked to develop an application so that from admin section they can modify the existing questions and their options, also they can add more questions and options.

I am not sure what would be the best approach for doing this. I was thinking creating a page in admin section where they can see existing questions and answer options, if they modify it i can directly change it in the database and if they add more questions, I can go and create a custom questions fields in the database. For answers option i will not create any fields in the database as i will generate options dynamically like textboxes, checkboxes, radiobuttons etc.. and when user select the answer i will put pnly selected answers in the database. 

EDIT
====

=======

I just want to give admin only 3 options for adding options ( checkbox, radios, textbox )
=========================================================================================

I am confused as how to create controls dynamically using generics. like admin can pass in the values in the method like this CreateControls(TextBox, NoOfOptions, List)

Please forgive me for not adding any code in my questions as i have not yet started working on this and stuck at the first stage of thinking process.

I am using VS2010, .Net 4.0, SQL server 208 R2 for this application.

Please advice. any working example Link would be appreciated.

Answer: 
You have confused [model DateTimeFields](https://docs.djangoproject.com/en/dev/ref/models/fields/#datetimefield) and [form DateTimeFields](https://docs.djangoproject.com/en/dev/ref/forms/fields). Models don't take `input_formats` arguments, forms do.

From [Working with forms](https://docs.djangoproject.com/en/dev/topics/forms/#working-with-forms):
the form library and API (which is what it sounds like you want) is to help you create HTML forms, do input validation, etc.

From [Models and databases](https://docs.djangoproject.com/en/dev/topics/db/#module-django.db):
A model is the single, definitive source of data about your data. It contains the essential fields and behaviors of the data you’re storing. Generally, each model maps to a single database table
The [`models.DateTimeField`](https://docs.djangoproject.com/en/dev/ref/models/fields/#django.db.models.DateTimeField) doesn't take any arguments passed to it called `input_formats`.

What you're looking for is [`form.DateTimeField`](https://docs.djangoproject.com/en/dev/ref/forms/fields/#datetimefield), for example:

```
form.DateTimeField(input_formats=['%d-%m-%y %H:%M',]) 

```

The formats must be in a `list`.