Questions tagged [django-grappelli]

django-grappelli is a grid-based alternative/extension to the Django administration interface

django-grappelli is a grid-based alternative/extension to the Django administration interface.

154 questions
2
votes
0 answers

Django-grappelli. How to delet inline items

I use grappelli for django admin. I have simple Blog model: class Blog(models.Model): title = models.CharField(max_length=100, unique=True) slug = models.SlugField(max_length=100, unique=True) body = models.TextField() …
Wolter
  • 1,053
  • 3
  • 11
  • 17
2
votes
1 answer

Filter by many2many (or foreignkey) that has a LOT of values, in django admin (grappelli or not)

I have two models: class TheMainThing(models.Model): ... some fields ... type = ManyToManyField('Type') class Type(models.Model): ...more fields... I would like to enable filtering TheMainThings in the admin by Types. The only Issue is…
frnhr
  • 12,354
  • 9
  • 63
  • 90
2
votes
1 answer

Django Admin Column Sort Descending

When using Django admin with grappelli I would like that a click on a column header will sort the table by descending order. (I don't want a default ordering to the columns by defining the ordering field in the Model Meta Class.) The default…
YardenST
  • 5,119
  • 2
  • 33
  • 54
2
votes
1 answer

Grappelli admin "change_list" columns are not sortable

SOLVED: Has been a bug in grappelli-safe, which is the grappelli fork used for Mezzanine. Should be solved by now. I have never used grappelli before switching to Mezzanine, so i do not know if this is standard behaviour, but i would be very…
marue
  • 5,588
  • 7
  • 37
  • 65
1
vote
2 answers

How to limit access to grappelli filebrowser using django auth permissions?

I need to restrict user access to filebrowser using permissions. For example, only users with permission "can_upload_files" should be able to see Filebrowser in my custom dashboard. Is this possible? Thanks!
1
vote
3 answers

django: grappelli: routing fails

I have installed grappelli via pip install (and subsequently updated it, to be sure). I put it before django.contrib.admin in INSTALLED_APPS: INSTALLED_APPS = ( ... 'grappelli', 'django.contrib.admin', My urls.py looks like…
Joseph Tura
  • 6,290
  • 8
  • 47
  • 73
1
vote
1 answer

Rosetta, Rosetta Grappelli and Grappelli messages not showing

I have a weird issue with this, the messages to be translated do not show on the rosetta url, Im using django 1.3.1, grappelli 2.3.5, rosetta-grappelli 1.0.1 and rosetta 0.6.5. As you can see on the following screenshot, it recognizes the language…
maumercado
  • 1,453
  • 4
  • 23
  • 47
1
vote
2 answers

Django - pip grappelli not on the good Python install

I'm using Django 1.3 with Python 2.7 in Ubuntu. Trying to install django-grappelli with pip $ pip install django-grappelli It apparently installs for Python 2.6 (the distribution version) Requirement already satisfied: django-grappelli in…
Pierre de LESPINAY
  • 44,700
  • 57
  • 210
  • 307
1
vote
1 answer

Django grappelli adding custom js to change_form

I try to add my custom javascript to some change_form templates. Before having installed Grappelli, I could do that by extending change_form.html of admin and creating sub folders under the templates with my module names. For example my tree…
brsbilgic
  • 11,613
  • 16
  • 64
  • 94
1
vote
1 answer

ModuleNotFoundError: No module named 'grappellidjango'

I've installed "grappelli" according to the instructions(https://django-grappelli.readthedocs.io/en/latest/quickstart.html#installation) But when I try "python manage.py collectstatic", I get this: Traceback (most recent call last): File…
MrStupid
  • 11
  • 3
1
vote
2 answers

Django 1.11: disable cache for authentificated users

We have a legacy application written in python 2.7 and django 1.11 (and no resources to migrate). Also it uses grappelli for authorization. We tried to add Edit links for some pages (each of the pages displays detailed info on a Round object) that…
1
vote
1 answer

GenericForeignKey in Grappelli admin: filter content_type to display only relevant models

With related lookups, I can easily get access to all the models I have to have a generic foreign key. Obviously, this is not what I want to do. I want to restrict it to just a sub set of the models I have -- specifically all the inherit from the…
Sardathrion - against SE abuse
  • 17,269
  • 27
  • 101
  • 156
1
vote
1 answer

django-import-export form not rendering in custom admin template w/ grappelli

after implementing django-import-export on a project using django-grappelli for admin UI, I've discovered there are some CSS incompatibilities between the two libs: https://github.com/sehmaschine/django-grappelli/issues/435 to address this, I…
Chris B.
  • 1,505
  • 5
  • 26
  • 48
1
vote
0 answers

Django FileBrowseField upload form

I have an Artwork and ArtworkPhoto models in Django. ArtworkPhoto has an FK to the Artwork and stores some additional data on the photo. class ArtworkPhoto(models.Model): title = models.CharField(max_length=200, verbose_name='Omschrijving',…
Yoeri
  • 1,876
  • 15
  • 24
1
vote
1 answer

Django Grapelli add autocomplete lookups on InlineAdmin

I have this 3 models: class MyFile(models.Model): file = models.FileField(upload_to="files/%Y/%m/%d") def __unicode__(self): """.""" return "%s" % ( self.file.name) class ExampleModel(models.Model): …
Pablo Estrada
  • 3,182
  • 4
  • 30
  • 74