示例#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)
             })