S
S
SashaN692021-03-16 22:05:46
Django
SashaN69, 2021-03-16 22:05:46

How to remove the "Recent Activities" tab in the Django admin?

Is it possible to remove the "Recent Activities" tab in the Django admin? And how can this be done.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stefan, 2021-03-16
@MEDIOFF

Override these three methods in your admin class - log_addition, log_change and log_deletion.
like this

class MyAdmin(admin.ModelAdmin):
    def log_addition(self, *args):
            return
    def log_change(self, *args):
            return
    def log_deletion(self, *args):
            return

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question