Thursday, March 29, 2012

Re: How Admin can be able to configure Model fields

On Thu, Mar 29, 2012 at 2:24 PM, Deepak RK <dpakrk@gmail.com> wrote:
> Ok , I will follow these guidelines ,
> Thanks
>
> I am a newbie in django.
> Again I want to come on question :
> I did some investigation around  Django admin inbuilt  functionality
> for my requirement but I have not found yet ?
> Admin can add another field in any model  and
> it should start appearing in form.
>

Yes, although when you change a model (adding another field), Django
will not automatically change the database structure for you. So you
would need to do that manually.

Django is not really designed to dynamically add/remove fields, or
indeed models, but yes, it can be done. However, wanting to do
something like that it is normally a sign that you have a bad design.

Cheers

Tom

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment