Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Debian New Member Process
nm.debian.org
Commits
7e7c960d
Commit
7e7c960d
authored
Mar 13, 2012
by
Enrico Zini
Browse files
Implemented adding new person
parent
257578e5
Changes
2
Hide whitespace changes
Inline
Side-by-side
backend/admin.py
View file @
7e7c960d
...
...
@@ -3,7 +3,8 @@ import backend.models as bmodels
class
PersonAdmin
(
admin
.
ModelAdmin
):
pass
exclude
=
(
"user"
,)
admin
.
site
.
register
(
bmodels
.
Person
,
PersonAdmin
)
class
AMAdmin
(
admin
.
ModelAdmin
):
...
...
restricted/templates/restricted/ammain.html
View file @
7e7c960d
...
...
@@ -21,6 +21,7 @@
{% block relatedpages %}
<a
href=
"{% url public_person key=person.lookup_key %}"
>
personal page
</a>
<a
href=
"{% url admin:backend_person_add %}"
>
new person
</a>
{{block.super}}
{% endblock %}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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