cbjadwani / django-logbook

BSD 3-Clause "New" or "Revised" License
3 stars 1 forks source link

Log admin page is not usable #1

Open vmihailenco opened 12 years ago

vmihailenco commented 12 years ago

Default log page in Django admin is not usable, because it has size > 3mb. The reason behind this is that Django displays select with all options for the following foreign key:

summary = models.ForeignKey(LogSummary, related_name='logs',
                            blank=True, null=True, db_index=True)

I have a lot of logs in DB so displaying the whole list of possible summaries is very expensive in terms of resources.

vmihailenco commented 12 years ago

Actually code above is just guess, I am not sure if logbook allow this, but it looks like the right way to integrate Django and logbook.