Skip to content
This repository has been archived by the owner on Feb 7, 2019. It is now read-only.

Commit

Permalink
Merge pull request #9 from yscumc/patch-1
Browse files Browse the repository at this point in the history
Fix typo in docstring
  • Loading branch information
maennel committed Sep 18, 2014
2 parents d3e4a76 + 8a959c1 commit 702ccd2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions versions/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -760,13 +760,13 @@ def delete(self, using=None):

def _delete_at(self, timestamp, using=None):
"""
WARNING: This method if only for internal use, it should not be used
WARNING: This method is only for internal use, it should not be used
from outside.
It is used only in the case when you want to make sure a group of
related objects are deleted at the exact same time.
It is certainly not meant to be used for deleting an object and give it
It is certainly not meant to be used for deleting an object and giving it
a random deletion date of your liking.
"""
if self.version_end_date is None:
Expand All @@ -781,10 +781,10 @@ def is_current(self):

def _clone_at(self, timestamp):
"""
WARNING: This method if only for internal use, it should not be used
WARNING: This method is only for internal use, it should not be used
from outside.
This function is mostly intended for testing, to allow us creating
This function is mostly intended for testing, to allow creating
realistic test cases.
"""
return self.clone(forced_version_date=timestamp)
Expand Down Expand Up @@ -840,7 +840,7 @@ def clone(self, forced_version_date=None):
def at(self, timestamp):
"""
Force the create date of an object to be at a certain time; This method can be invoked only on a
freshly created Versionable object. It must not have been cloned yet. Raises a SuspitiousOperation
freshly created Versionable object. It must not have been cloned yet. Raises a SuspiciousOperation
exception, otherwise.
:param timestamp: a datetime.datetime instance
"""
Expand Down

0 comments on commit 702ccd2

Please sign in to comment.