Wednesday, August 24, 2011

Customizing the admin form

Hi,

I have customized a model admin form, editing the label_for_instance for a ForeignKey field and a MultiChoice Field.
As a result the plus button was gone. How can I insert it back? (didn't find anything in the documentation)

Couple more questions:
1. I have a django mptt key and when I edit I can pick the same element(how can I populate it without the one that I edit)
2. How can I add descriptions for the fields
3. How can I remove the validation of certain elements and insert my own(I'm using a slug field and it doesnt accept anything but ascii, I fixed it so it would work with utf8 but the validation remained)


Thanks !!

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/HsrZW2uhRUkJ.
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.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate