visd / VISD-Badges

VISD Badges
Other
0 stars 0 forks source link

Screen for self-referring database columns #38

Open argybarg opened 11 years ago

argybarg commented 11 years ago

Some model instances (namely our user and group) are going to have to refer to themselves. For instance the CustomUser.user, for any given instance, is itself. So we can't user the ORM for this; we use a memoized property in its place.

This means that any routine that wants to use the ORM needs to monkey-patch these properties in.

argybarg commented 10 years ago

I currently keep the Q from even asking for these columns. This may have to do for now. The number of times we'll ask for users who are owned by the current user, or groups that whose group is this group, is going to be vanishingly small. But I'll leave this as a infinitesimal edge case.