This repository has been archived by the owner on Jun 7, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated the views to clarify the names and make it clearer what they do. Which included re-naming the templates. Also performed a number of PEP8 fixes along the way.
- Loading branch information
Showing
8 changed files
with
54 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
|
||
{% for consent in consent_list %} | ||
|
||
<h4>{{ consent.privilege.name }}</h4> | ||
{{ consent.privilege.description }}<br/> | ||
<br/> | ||
({{ consent.privilege.users.count }} User{{ consent.privilege.users.count|pluralize }}) | ||
|
||
{% endfor %} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
from django.conf.urls.defaults import patterns, url, include | ||
|
||
from consent.views import PrivilegeListView, ConsentEditView | ||
from consent.views import ConsentListView, ConsentEditView | ||
|
||
from django.contrib import admin | ||
|
||
admin.autodiscover() | ||
|
||
urlpatterns = patterns('', | ||
(r'^admin/', include(admin.site.urls)), | ||
url(r'^$', PrivilegeListView.as_view(), name="privileges"), | ||
url(r'^$', ConsentListView.as_view(), name="privileges"), | ||
url(r'^edit/$', ConsentEditView.as_view(), name="edit_privileges"), | ||
|
||
) |