예제 #1
0
파일: tests.py 프로젝트: ws-os/oh-mainline
 def create_pfe_with_description(username):
     return PortfolioEntry.create_dummy(project=project,
                                        person=Person.get_by_username(
                                            username),
                                        is_published=True)
예제 #2
0
 def get_object(self, bits):
     if len(bits) != 1:
         raise ObjectDoesNotExist
     return Person.get_by_username(bits[0])
예제 #3
0
 def get_object(self, bits):
     if len(bits) != 1:
         raise ObjectDoesNotExist
     return Person.get_by_username(bits[0])