{"issue":{"state":"closed","created_at":"2011-12-07T11:57:38Z","updated_at":"2011-12-07T13:04:47Z","user":{"gravatar_id":"39e7ef9accbfdaf157b6615cbc397d7c","id":738398,"url":"https://api.github.com/users/kanu","login":"kanu","avatar_url":"https://secure.gravatar.com/avatar/39e7ef9accbfdaf157b6615cbc397d7c?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"comments":1,"body":"I have not nailed it down completly but there is a strange behavior when you use models objects.get with a filebrowserfield as lookup.\r\nThe error is catched somewhere and only a warning is printed and the result is ok.\r\nI think it has something todo with with the prepare flag of get_db_prep_value that keeps the method called again and again.\r\n\r\nSteps to try it out:\r\nopen the django shell\r\n\r\nfrom myapp.models import model_with_filebrowserfield as mymodel\r\nobj = mymodel.objects.all()[0]\r\nmymodel.objects.get(image=obj.image)\r\nException RuntimeError: 'maximum recursion depth exceeded while calling a Python object' in <type 'exceptions.AttributeError'> ignored\r\n","assignee":null,"id":2473814,"pull_request":{"patch_url":"https://github.com/sehmaschine/django-filebrowser/pull/56.patch","html_url":"https://github.com/sehmaschine/django-filebrowser/pull/56","diff_url":"https://github.com/sehmaschine/django-filebrowser/pull/56.diff"},"labels":[],"number":56,"title":"avoid maximum recursion errors on manager.get calls","closed_at":"2011-12-07T13:04:47Z","html_url":"https://github.com/sehmaschine/django-filebrowser/issues/56","url":"https://api.github.com/repos/sehmaschine/django-filebrowser/issues/56","milestone":null},"action":"created","comment":{"created_at":"2011-12-07T13:04:47Z","updated_at":"2011-12-07T13:04:47Z","user":{"gravatar_id":"39e7ef9accbfdaf157b6615cbc397d7c","id":738398,"url":"https://api.github.com/users/kanu","login":"kanu","avatar_url":"https://secure.gravatar.com/avatar/39e7ef9accbfdaf157b6615cbc397d7c?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"fixed an issues i had with the version_generator\r\n\r\n1. default_site if site is None\r\n2. in the loop for versions methods the variable is called f as the file\r\n3. if site.storage fails to open the file there is nothing to close in the finally part","id":3046874,"url":"https://api.github.com/repos/sehmaschine/django-filebrowser/issues/comments/3046874"}}