{"issue":{"state":"closed","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"milestone":{"state":"open","open_issues":5,"url":"https://api.github.com/repos/lsbardel/python-stdnet/milestones/1","due_on":"2011-12-31T08:00:00Z","title":"0.7","description":"This version will include several important features:\r\n\r\n* Proper transaction management\r\n* Lua Scripting\r\n* Utilities for dumping data in at least JSON format","creator":{"avatar_url":"https://secure.gravatar.com/avatar/1816aaddac0110ea78185e7759156907?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"1816aaddac0110ea78185e7759156907","url":"https://api.github.com/users/lsbardel","login":"lsbardel","id":144320},"number":1,"closed_issues":3,"created_at":"2011-06-05T19:00:02Z"},"user":{"avatar_url":"https://secure.gravatar.com/avatar/73f790d8d5caba14e126f712fbe81f14?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"73f790d8d5caba14e126f712fbe81f14","url":"https://api.github.com/users/kuno","login":"kuno","id":161327},"labels":[{"name":"bug","color":"e10c02","url":"https://api.github.com/repos/lsbardel/python-stdnet/labels/bug"},{"name":"orm","color":"0b02e1","url":"https://api.github.com/repos/lsbardel/python-stdnet/labels/orm"},{"name":"test","color":"444444","url":"https://api.github.com/repos/lsbardel/python-stdnet/labels/test"}],"assignee":{"avatar_url":"https://secure.gravatar.com/avatar/1816aaddac0110ea78185e7759156907?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"1816aaddac0110ea78185e7759156907","url":"https://api.github.com/users/lsbardel","login":"lsbardel","id":144320},"updated_at":"2011-11-15T00:40:41Z","comments":3,"closed_at":"2011-11-14T16:38:09Z","url":"https://api.github.com/repos/lsbardel/python-stdnet/issues/21","body":"In [35]: a.delete()\r\n---------------------------------------------------------------------------\r\nAttributeError                            Traceback (most recent call last)\r\n/home/kuno/utopia/sogoke-django/sogoke/<ipython-input-35-7bdca98f20ae> in <module>()\r\n----> 1 a.delete()\r\n\r\n/home/kuno/utopia/sogoke-django/lib/python2.7/site-packages/stdnet/orm/models.pyc in delete(self, transaction)\r\n    165         for obj in self.related_objects():\r\n    166             T += obj.delete(transaction)\r\n--> 167         res = T + meta.cursor.delete_object(self, transaction)\r\n    168         post_delete.send(sender=self.__class__, instance = self)\r\n    169         return res\r\n\r\n/home/kuno/utopia/sogoke-django/lib/python2.7/site-packages/stdnet/backends/base.pyc in delete_object(self, obj, transaction)\r\n    167 \r\n    168         self._remove_indexes(obj, transaction)\r\n--> 169         self._delete_object(obj, transaction)\r\n    170 \r\n    171         if commit:\r\n\r\n/home/kuno/utopia/sogoke-django/lib/python2.7/site-packages/stdnet/backends/redisb.pyc in _delete_object(self, obj, transaction)\r\n    413         if mfs:\r\n    414             pipe = transaction.pipe\r\n--> 415             fids = [fid for fid in (field.id(obj) for field in mfs) if fid]\r\n    416             if fids:\r\n    417                 pipe.delete(*fids)\r\n\r\n/home/kuno/utopia/sogoke-django/lib/python2.7/site-packages/stdnet/backends/redisb.pyc in <genexpr>((field,))\r\n    413         if mfs:\r\n    414             pipe = transaction.pipe\r\n--> 415             fids = [fid for fid in (field.id(obj) for field in mfs) if fid]\r\n    416             if fids:\r\n    417                 pipe.delete(*fids)\r\n\r\n/home/kuno/utopia/sogoke-django/lib/python2.7/site-packages/stdnet/orm/std.pyc in id(self, obj)\r\n    138 \r\n    139     def id(self, obj):\r\n--> 140         return getattr(obj,self.attname).id\r\n    141 \r\n    142 \r\n\r\nAttributeError: 'M2MRelatedManager' object has no attribute 'id'\r\n","html_url":"https://github.com/lsbardel/python-stdnet/issues/21","title":"Can not delete a model with a ManyToManyField","number":21,"id":2228754,"created_at":"2011-11-14T09:49:37Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/73f790d8d5caba14e126f712fbe81f14?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"73f790d8d5caba14e126f712fbe81f14","url":"https://api.github.com/users/kuno","login":"kuno","id":161327},"updated_at":"2011-11-15T00:40:41Z","url":"https://api.github.com/repos/lsbardel/python-stdnet/issues/comments/2739224","body":"thanks! It works now ; )","id":2739224,"created_at":"2011-11-15T00:40:41Z"}}