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 template include myextrastyle.css in the extrastyle block
> 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 template include myextrastyle.css in the extrastyle block
>
Vikas
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
>The problem I am posting it to django list is because the problem is
> 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 using regex or
> something like that to cover all the above formulations of "id".
>
>
>
> Yes there is, but this is no django thing you are asking, using jquery you can
> accomplish that :
>
> http://api.jquery.com/attribute-starts-with-selector/
>
> jQuery('[id^=id_member_set]').each(so_stuff)
>
> Check the web, there is a __LOT__ of info on this.
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).
I am new to all of these and would prefer if the problem could be
solved without going to jquery. It is a simple django model and I have
picked up some sense of css. But java/jquery is totally alien to me.
Vikas
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.