On Apr 29, 7:33 pm, alex23 <
wuwe...@gmail.com> wrote:
> On Apr 30, 5:29 am, Chris Curvey <
ccur...@gmail.com> wrote:
>
> > Anyone seen this message before? I have to believe it's a usage error
> > on my part, but I can't figure out what the practical meaning is
>
> > Module elixir.entity:826 in delete
>
> > def delete(self, *args, **kwargs):
> > return object_session(self).delete(self, *args, **kwargs)
>
> > <type 'exceptions.AttributeError'>: 'NoneType' object has no attribute
> > 'delete'
>
> Hey Chris,
>
> You didn't provide any context for where the error is occuring but
> basically, this is a standard Python exception for trying to access a
> non-existent attribute - in this case the method 'delete' - on an
> object.
>
oh yeah, I got that. I guess I'm asking if anyone can think of a
reason why object_session(self) would return None. To hack around the
other problems I'm hiding by doing that.