SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 5d7860ac authored by Jean-Sébastien Caux's avatar Jean-Sébastien Caux
Browse files

Remove import alls from commentaries

parent d6ea3a92
No related branches found
No related tags found
No related merge requests found
from django.contrib import admin from django.contrib import admin
from commentaries.models import * from commentaries.models import Commentary
class CommentaryAdmin(admin.ModelAdmin): class CommentaryAdmin(admin.ModelAdmin):
......
from django import forms from django import forms
from .models import * from .models import Commentary
COMMENTARY_ACTION_CHOICES = ( COMMENTARY_ACTION_CHOICES = (
(0, 'modify'), (0, 'modify'),
......
...@@ -2,10 +2,12 @@ from django.utils import timezone ...@@ -2,10 +2,12 @@ from django.utils import timezone
from django.db import models from django.db import models
from django.contrib.auth.models import User from django.contrib.auth.models import User
from .models import *
from journals.models import * from journals.models import SCIPOST_JOURNALS_DOMAINS, SCIPOST_JOURNALS_SPECIALIZATIONS
from scipost.models import * from scipost.models import Contributor
from scipost.models import SCIPOST_DISCIPLINES
COMMENTARY_TYPES = ( COMMENTARY_TYPES = (
('published', 'published paper'), ('published', 'published paper'),
......
...@@ -9,16 +9,16 @@ from django.http import HttpResponse, HttpResponseRedirect ...@@ -9,16 +9,16 @@ from django.http import HttpResponse, HttpResponseRedirect
from django.views.decorators.csrf import csrf_protect from django.views.decorators.csrf import csrf_protect
from django.db.models import Avg from django.db.models import Avg
from .models import * from .models import Commentary
from .forms import * from .forms import RequestCommentaryForm, VetCommentaryForm, CommentarySearchForm
from comments.models import Comment from comments.models import Comment
from comments.forms import CommentForm from comments.forms import CommentForm
from scipost.forms import TITLE_CHOICES, AuthenticationForm#, OpinionForm from scipost.models import Contributor
from scipost.models import title_dict
from scipost.forms import AuthenticationForm
title_dict = dict(TITLE_CHOICES) # Convert titles for use in emails
################ ################
# Commentaries # Commentaries
################ ################
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment