> 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
> 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
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-
>
> 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
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
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
> >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
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
> > In admin.py you can for example ...
> >
> > fieldsets = (
> > (None, {
> > 'classes': ['myowncssclassname',],
> > 'fields': (
> > 'field_abc',
> > 'field_xyz',
> >
> > ... and specify myowncssclassname in myextrasty
> 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
>
> In admin.py you can for example ...
>
> fieldsets = (
> (None, {
> 'classes': ['myowncssclassname',],
> 'fields': (
> 'field_abc',
> 'field_xyz',
>
> ... and specify myowncssclassname in myextrastyle.css then fina
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': (
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
13 matches
Mail list logo