Package expedient :: Package clearinghouse :: Package project :: Module models :: Class ProjectManager
[hide private]
[frames] | no frames]

Class ProjectManager

source code


Manager for Project instances.

Add methods to retrieve project querysets.

Instance Methods [hide private]
 
get_for_user(self, user)
Return projects for which user has some permission.
source code

Inherited from django.db.models.manager.Manager: __init__, aggregate, all, annotate, complex_filter, contribute_to_class, count, create, dates, db_manager, defer, distinct, exclude, exists, extra, filter, get, get_empty_query_set, get_or_create, get_query_set, in_bulk, iterator, latest, none, only, order_by, raw, reverse, select_related, update, using, values, values_list

Inherited from django.db.models.manager.Manager (private): _copy_to_model, _insert, _set_creation_counter, _update

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]

Inherited from django.db.models.manager.Manager: creation_counter

Properties [hide private]

Inherited from django.db.models.manager.Manager: db

Inherited from object: __class__

Method Details [hide private]

get_for_user(self, user)

source code 

Return projects for which user has some permission.

Parameters:
  • user (User.) - The user whose projects we are looking for.