un1t/django-cleanup — pull request #3 by ldoubleuz (2013-04-03 17:57:44+00:00)
Title: Use .pk instead of .id

remove_old_files currently assumes that the primary key field of a model is named id, which will fail if the user has defined a custom primary key using primary_key=True.

Switching .id to .pk instead should be able to account for these edge cases.