dajngo TabularInline fixed objects

8 views
Skip to first unread message

Mateusz Harasymczuk

unread,
Jul 1, 2011, 5:25:49 AM7/1/11
to django...@googlegroups.com
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. 


Reply all
Reply to author
Forward
0 new messages