-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
replace django organizations with custom implementation
- Loading branch information
Showing
15 changed files
with
180 additions
and
106 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
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
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,12 +1,22 @@ | ||
from django.contrib.admin import ModelAdmin, site | ||
|
||
from .conf import settings | ||
from .models import Project | ||
from .models import Project, ProjectMembership | ||
|
||
|
||
class ProjectAdmin(ModelAdmin): | ||
pass | ||
|
||
|
||
class ProjectMembershipAdmin(ModelAdmin): | ||
pass | ||
|
||
|
||
if not settings.PROJECTS_PROJECT_MODEL or settings.PROJECTS_PROJECT_MODEL == "projects.Project": | ||
site.register(Project, ProjectAdmin) | ||
|
||
if ( | ||
not settings.PROJECTS_PROJECTMEMBERSHIP_MODEL | ||
or settings.PROJECTS_PROJECTMEMBERSHIP_MODEL == "projects.ProjectMembership" | ||
): | ||
site.register(ProjectMembershipAdmin, ProjectMembershipAdmin) |
Oops, something went wrong.