Skip to content

Commit b70f39d

Browse files
committed
Updates to the ngo page
1 parent 74af958 commit b70f39d

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

backend/donations/models/main.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -196,10 +196,8 @@ def __str__(self):
196196
return f"{self.name}"
197197

198198
def get_full_form_url(self):
199-
if self.prefilled_form:
200-
return self.prefilled_form.url
201-
elif self.form_url:
202-
return self.form_url
199+
if self.slug:
200+
return f"redirectioneaza.ro/{self.slug}"
203201
else:
204202
return ""
205203

backend/templates/v1/ngo/my-account.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<div class="col-xs-12 col-md-6 col-md-offset-3">
3939
<div data-toggle="popover" data-placement="bottom" data-content="Apasă CTRL+C pentru a copia adresa">
4040
<label for="url-ngo">URL:</label>
41-
<input id="url-ngo" class="ngo-copy-url form-control" value="{{ ngo.get_full_form_url() if ngo }}" readonly />
41+
<input id="url-ngo" class="ngo-copy-url form-control" value="{{ ngo_url }}" readonly />
4242
</div>
4343
</div>
4444
</div>

0 commit comments

Comments
 (0)