Re: How to add fields to an existing model dynamically? Also how to modify existing field of a model dynamically?

2015-07-31 Thread Christian Ledermann
you can use a technique from the zope world known as Annotations: http://davidemoro.blogspot.co.uk/2015/02/kotti-cms-annotations-store-arbitrary-data.html which basically means that you store additional data in a json field have a look at: https://github.com/octobot-dev/pulpo-forms-django

Re: How to add fields to an existing model dynamically? Also how to modify existing field of a model dynamically?

2015-07-30 Thread SriPrad
Hi, Thanks for the quick response. I understand that it is not typical to have dynamic model. However the requirements I have need to allow the admin to make changes/ create models dynamically. I have looked at South library. However my understanding is that it is not supported for Django 1.7

Re: How to add fields to an existing model dynamically? Also how to modify existing field of a model dynamically?

2015-07-30 Thread Rafael E. Ferrero
IMHO (maybe i'm wrong) i think that its not quite good modify your database structure dynamically to often, maybe you must to think a better design of your model. I'm working on a Health bussiness in Argentina and never need to change the database structure to modify a medical form. (for now)

How to add fields to an existing model dynamically? Also how to modify existing field of a model dynamically?

2015-07-30 Thread SriPrad
Hi, I am new to Django and Python!. I am using Django 1.8.3 along with Python 3.2 and using sqlite as the database. I am trying to setup a site using Django wherein the model is created dynamically( For eg: a Medical form) The fields of the form are stored in db and the model created