Friday, July 1, 2011

dajngo TabularInline fixed objects

Is there a way to declare a set of fixed objects in TabularInline?

I have:

Contract object (with user data, user address and stuff) and tabular inline added months.

months names are fixed, and there is some data to change for each month

I have done this with JavaScript, setting value of each field (month name), on document ready, and then disabling a select list
is there a way to do so via django?

acting like readonly_field with default value set, but not one static value, but variable depending on row num. 


--
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/-/1gcQQsNjB4cJ.
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