Skip to content

Commit

Permalink
fixing indent
Browse files Browse the repository at this point in the history
  • Loading branch information
meomancer committed Jul 19, 2016
1 parent 44b48c9 commit 5a892ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
6 changes: 0 additions & 6 deletions django_project/changes/models/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
from .entry import Entry
from .sponsorship_period import SponsorshipPeriod
from core.settings.contrib import STOP_WORDS
from django.core.exceptions import ValidationError
from django.conf.global_settings import MEDIA_ROOT
from django.contrib.auth.models import User
from django.utils.translation import ugettext_lazy as _
Expand Down Expand Up @@ -99,11 +98,6 @@ class Meta:
app_label = 'changes'
# ordering = ['-datetime_created']

def clean(self):
if not self.project.approved:
raise ValidationError(
"can't create version because project is not approved yet")

def save(self, *args, **kwargs):
if not self.pk:
words = self.name.split()
Expand Down
8 changes: 4 additions & 4 deletions django_project/changes/views/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,10 +446,10 @@ def form_valid(self, form):


class PendingVersionListView(
StaffuserRequiredMixin,
VersionMixin,
PaginationMixin,
ListView):
StaffuserRequiredMixin,
VersionMixin,
PaginationMixin,
ListView):
"""List view for pending Version. Staff see all """
context_object_name = 'versions'
template_name = 'version/list.html'
Expand Down

0 comments on commit 5a892ce

Please sign in to comment.