This website works better with JavaScript.
Home
Help
Register
Sign In
alpcentaur
/
foerderbarometer
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
5
Wiki
Activity
Browse Source
added modell and admin for HonoraryCertificate
master
Benni Baermann
4 years ago
parent
f579521a1a
commit
04d51943d9
2 changed files
with
9 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-1
input/admin.py
+7
-0
input/models.py
+ 2
- 1
input/admin.py
View File
@ -1,6 +1,7 @@
from
django.contrib
import
admin
# Register your models here.
from
.models
import
Project
from
.models
import
Project
,
HonoraryCertificate
admin
.
site
.
register
(
Project
)
admin
.
site
.
register
(
HonoraryCertificate
)
+ 7
- 0
input/models.py
View File
@ -16,3 +16,10 @@ class Project(Volonteer):
def
__str__
(
self
)
:
return
self
.
name
class
HonoraryCertificate
(
Volonteer
)
:
request_url
=
models
.
CharField
(
max_length
=
400
)
#can urls be longer in theory?
number
=
models
.
IntegerField
(
null
=
True
)
def
__str__
(
self
)
:
return
"
Certificate for
"
+
self
.
realname
Write
Preview
Loading…
Cancel
Save