예제 #1
0
 def test_urls(self):
     """Ensure no error is raised"""
     reverse('invitations_register',
             kwargs={
                 'user_id': self.pending_user.id,
                 'token': self.tokenizer.make_token(self.pending_user)
             })
예제 #2
0
    def test_registration_create(self):
        assert reverse("registration_create")
        # assert reverse("index")

        assert reverse(
            "test_accounts:account_invitations:invitations_register",
            kwargs={"guid": str(uuid.uuid4()).replace("-", "")},
        )
    def test_registration_create(self):
        assert reverse("registration_create")
        # assert reverse("index")

        assert reverse(
            "test_accounts:account_invitations:invitations_register",
            kwargs={"guid": str(uuid.uuid4()).replace("-", "")},
        )
 def test_urls(self):
     reverse(
         "registration_register",
         kwargs={
             "user_id": self.pending_user.pk,
             "token": self.tokenizer.make_token(self.pending_user),
         },
     )
예제 #5
0
 def test_urls(self):
     reverse(
         "registration_register",
         kwargs={
             "user_id": self.pending_user.pk,
             "token": self.tokenizer.make_token(self.pending_user),
         },
     )
예제 #6
0
 def test_urls(self):
     """Ensure no error is raised"""
     reverse(
         "invitations_register",
         kwargs={
             "user_id": self.pending_user.pk,
             "token": self.tokenizer.make_token(self.pending_user),
         },
     )
 def test_urls(self):
     """Ensure no error is raised"""
     reverse(
         "invitations_register",
         kwargs={
             "user_id": self.pending_user.pk,
             "token": self.tokenizer.make_token(self.pending_user),
         },
     )
예제 #8
0
파일: abstract.py 프로젝트: lozpdata/ORGI
 def get_absolute_url(self):
     return reverse(
         "organization_user_detail",
         kwargs={
             "organization_pk": self.organization.pk,
             "user_pk": self.user.pk
         },
     )
예제 #9
0
 def get_success_url(self):
     return reverse('registration_success')
예제 #10
0
 def get_absolute_url(self):
     """Returns the invitation URL"""
     return reverse("invitations_register", kwargs={"guid": self.guid})
예제 #11
0
 def get_success_url(self):
     if hasattr(self, "success_url"):
         return self.success_url
     return reverse("organization_signup_success")
예제 #12
0
 def get_success_url(self):
     return reverse("registration_success")
예제 #13
0
 def get_absolute_url(self):
     """Returns the invitation URL"""
     return reverse(
         "test_accounts:account_invitations:invitations_register",
         kwargs={"guid": str(self.guid).replace("-", "")},
     )
예제 #14
0
 def get_absolute_url(self):
     return reverse('organization_user_detail',
                    kwargs={
                        'organization_pk': self.organization.pk,
                        'user_pk': self.user.pk
                    })
예제 #15
0
 def get_absolute_url(self):
     return reverse('organization_detail',
                    kwargs={'organization_pk': self.pk})
예제 #16
0
 def get_success_url(self):
     return reverse("organization_list")
예제 #17
0
 def get_success_url(self):
     return reverse(
         "organization_user_list",
         kwargs={"organization_pk": self.object.organization.pk},
     )
예제 #18
0
 def get_success_url(self):
     # TODO get this url name from an attribute
     return reverse("organization_list")
예제 #19
0
 def get_success_url(self):
     return reverse("organization_list")
예제 #20
0
 def get_absolute_url(self):
     return reverse("organization_detail", kwargs={"organization_pk": self.pk})
예제 #21
0
 def get_absolute_url(self):
     return reverse(
         "organization_user_detail",
         kwargs={"organization_pk": self.organization.pk, "user_pk": self.user.pk},
     )
예제 #22
0
 def get_success_url(self):
     return reverse('organization_user_list',
                    kwargs={'organization_pk': self.object.organization.pk})
예제 #23
0
파일: base.py 프로젝트: lozpdata/ORGI
 def get_absolute_url(self):
     """Returns the invitation URL"""
     return reverse("invitations_register", kwargs={"guid": self.guid})
예제 #24
0
 def get_success_url(self):
     if hasattr(self, 'success_url'):
         return self.success_url
     return reverse('organization_signup_success')
예제 #25
0
파일: abstract.py 프로젝트: lozpdata/ORGI
 def get_absolute_url(self):
     return reverse("organization_detail",
                    kwargs={"organization_pk": self.pk})
예제 #26
0
 def get_success_url(self):
     return reverse(
         "organization_user_list",
         kwargs={"organization_pk": self.object.organization.pk},
     )
예제 #27
0
 def get_absolute_url(self):
     """Returns the invitation URL"""
     return reverse(
         "test_accounts:account_invitations:invitations_register",
         kwargs={"guid": str(self.guid).replace("-", "")},
     )
예제 #28
0
 def get_success_url(self):
     if hasattr(self, "success_url"):
         return self.success_url
     return reverse("organization_signup_success")
예제 #29
0
 def get_success_url(self):
     # TODO get this url name from an attribute
     return reverse('organization_list')
예제 #30
0
 def test_urls(self):
     reverse('registration_register',
             kwargs={
                 'user_id': self.pending_user.id,
                 'token': self.tokenizer.make_token(self.pending_user)
             })