Skip to content

HiddenInput fields not hidden in Grapelli #3

@mhowsden

Description

@mhowsden

If I have a model like so --

class CuratedBlogArticleInline(admin.StackedInline):
model = CuratedBlogArticle
sortable_field_name = "position"
raw_id_fields = ['article']
extra = 0
formfield_overrides = {
models.PositiveSmallIntegerField: {"widget": HiddenInput(),"label":''}
}

In the grapelli interface the "position" field label is still showing, well the colon in the label shows with the above admin model and the row takes up space so it borks the subsequent row.

These were seen in django 1.3.1 Grappelli 2.3.7

I think this is the same issue as in this stackoverflow ticket --

http://stackoverflow.com/questions/1408940/how-do-i-hide-the-field-label-for-a-hiddeninput-widget-in-django-admin

or this one

http://stackoverflow.com/questions/4999005/create-a-hidden-field-in-django-admin/6498907#6498907

If you can't find an obvious way to solve it generally I'll do a css hack in a branch (or something).

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions