Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
94ab65de
authored
Mar 25, 2015
by
Kálmán Viktor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
request: add decline notification
parent
d09f8aef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
circle/request/models.py
+10
-0
No files found.
circle/request/models.py
View file @
94ab65de
...
@@ -126,6 +126,16 @@ class Request(TimeStampedModel):
...
@@ -126,6 +126,16 @@ class Request(TimeStampedModel):
self
.
reason
=
reason
self
.
reason
=
reason
self
.
save
()
self
.
save
()
decline_msg
=
ugettext_noop
(
'Your <a href="
%(url)
s">request</a> was declined because of the '
'following reason:
%(reason)
s'
)
self
.
user
.
profile
.
notify
(
ugettext_noop
(
"Request declined"
),
decline_msg
,
url
=
self
.
get_absolute_url
(),
reason
=
self
.
reason
,
)
class
LeaseType
(
RequestType
):
class
LeaseType
(
RequestType
):
lease
=
ForeignKey
(
Lease
,
verbose_name
=
_
(
"Lease"
))
lease
=
ForeignKey
(
Lease
,
verbose_name
=
_
(
"Lease"
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment