barseghyanartur / django-admin-timeline

A Facebook-like timeline app for Django admin. It's very similar to built-in feature Daily progress, but has nicer templates and infinite scroll. Actions are broken up by day, then by action. It's possible to filter actions by user (multiple select) and content type (multiple select).
https://pypi.python.org/pypi/django-admin-timeline
53 stars 10 forks source link

Error on log entries without content type #6

Closed thorin-schiffer closed 7 years ago

thorin-schiffer commented 7 years ago

AttributeError at /timeline/ 'NoneType' object has no attribute 'name'

            ]
        )
    )
def get_content_types(data):
    """Get content type choices."""
    return list(set([(d.content_type_id, d.content_type.name) for d in data])) ...
class FilterForm(forms.Form):
    """Filter form to be used in the timeline.
    ``users``: Users list to be filtered on.
barseghyanartur commented 7 years ago

@eviltnan:

Thanks for bringing this up. I'll fix it soon.

barseghyanartur commented 7 years ago

@eviltnan:

Fixed in version 1.6.1.