Re: Column widths in TabularInline

2012-08-29 Thread Vikas Rawal
> How do i customise width of different columns in a TabularInline object in my > admin interface. For record, I finally managed to resize form fields using instructions given here: http://blogs.law.harvard.edu/rprasad/2011/08/31/django-admin-resizing-form-fields-for-tabularinline/ Thanks very

Re: Column widths in TabularInline

2012-08-28 Thread Vikas Rawal
> The problem I am posting it to django list is because the problem is > obviously related to the way django works. Various solutions to the > problem, none of which have worked so far, have either been using > python/django or css (and now, jquery). > > > > you can not expect t

Re: Column widths in TabularInline

2012-08-28 Thread Nicolas Emiliani
On Tue, Aug 28, 2012 at 3:47 AM, Vikas Rawal < vikasli...@agrarianresearch.org> wrote: > > > > The problem is that the #id is different for each row of the tabular > > inline object. > > > > it takes the form > > > > id="id_member_set-0-name" for the first row, > id="id_member_set-

Re: Column widths in TabularInline

2012-08-27 Thread Vikas Rawal
> > The problem is that the #id is different for each row of the tabular > inline object. > > it takes the form > > id="id_member_set-0-name" for the first row, id="id_member_set-1-name" > for the second row, etc. > > Therefore #whatever does not work. Is there a way of

Re: Column widths in TabularInline

2012-08-27 Thread Nicolas Emiliani
On Mon, Aug 27, 2012 at 3:34 AM, Vikas Rawal < vikasli...@agrarianresearch.org> wrote: > > >There is a field in my model called "name". What do I give in the css > > >file to reduce its width to say 100px? > > > > This is css rather than Django but this is what I did to make my > > input field wid

Re: Column widths in TabularInline

2012-08-27 Thread Mike Dewhirst
On 27/08/2012 4:34pm, Vikas Rawal wrote: There is a field in my model called "name". What do I give in the css file to reduce its width to say 100px? This is css rather than Django but this is what I did to make my input field wider ... .wider .vTextField { width: 60em !important; } If y

Re: Column widths in TabularInline

2012-08-26 Thread Vikas Rawal
> >There is a field in my model called "name". What do I give in the css > >file to reduce its width to say 100px? > > This is css rather than Django but this is what I did to make my > input field wider ... > > .wider .vTextField { > width: 60em !important; > } > > If you view source in you

Re: Column widths in TabularInline

2012-08-26 Thread Mike Dewhirst
On 26/08/2012 6:22pm, Vikas Rawal wrote: > In admin.py you can for example ... > > fieldsets = ( > (None, { > 'classes': ['myowncssclassname',], > 'fields': ( > 'field_abc', > 'field_xyz

Re: Column widths in TabularInline

2012-08-26 Thread Vikas Rawal
> > In admin.py you can for example ... > > > > fieldsets = ( > > (None, { > > 'classes': ['myowncssclassname',], > > 'fields': ( > > 'field_abc', > > 'field_xyz', > > > > ... and specify myowncssclassname in myextrasty

Re: Column widths in TabularInline

2012-08-25 Thread Vikas Rawal
> In admin.py you can for example ... > > fieldsets = ( > (None, { > 'classes': ['myowncssclassname',], > 'fields': ( > 'field_abc', > 'field_xyz', > > ... and specify myowncssclassname in myextrastyle.css then finally > in the

Re: Column widths in TabularInline

2012-08-24 Thread Vikas Rawal
> > In admin.py you can for example ... > > fieldsets = ( > (None, { > 'classes': ['myowncssclassname',], > 'fields': ( > 'field_abc', > 'field_xyz', > > ... and specify myowncssclassname in myextrastyle.css then fina

Re: Column widths in TabularInline

2012-08-24 Thread Mike Dewhirst
On 25/08/2012 3:06am, Vikas Rawal wrote: How do i customise width of different columns in a TabularInline object in my admin interface. In admin.py you can for example ... fieldsets = ( (None, { 'classes': ['myowncssclassname',], 'fields': (

Column widths in TabularInline

2012-08-24 Thread Vikas Rawal
How do i customise width of different columns in a TabularInline object in my admin interface. V. -- 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/-/dekCUaST