Does django have some inbuilt model getter functionality? I've "lost" a function

52 Views Asked by At

I'm just.. I dunno.

The model is calling self.get_next_by_context_start(). And it works. I can call it in a shell.

But I've grepped the entire codebase and... it's just... not there.

grep -r "get_next_by_context_start" - this lists just two instances of the string, both times where the function is being called. There's no def get_next_by_context_start anywhere.

How am I being this stupid? How can I lose an entire function?

1

There are 1 best solutions below

1
Wintermute On

GAAAHHHH.

get_next_by_FOO() is an inbuilt Django model function.

Sorry.