diff options
Diffstat (limited to 'app/posts/models.py')
-rw-r--r-- | app/posts/models.py | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/app/posts/models.py b/app/posts/models.py index 21dd6d5..4616ad5 100644 --- a/app/posts/models.py +++ b/app/posts/models.py @@ -94,7 +94,6 @@ class Post(models.Model): originally_published_by_url = models.CharField(max_length=400, null=True, blank=True) field_notes = models.ManyToManyField('self', blank=True, symmetrical=False, limit_choices_to = {'post_type': PostType.FIELD_NOTE}) books = models.ManyToManyField(Book, blank=True) - issue = models.PositiveIntegerField(null=True) class Meta: ordering = ('-pub_date',) @@ -126,14 +125,6 @@ class Post(models.Model): def get_content_type(self): return ContentType.objects.get(app_label="posts", model="post") - def get_issue_str(self): - issue = self.issue - if self.issue < 100: - issue = "0%s" % self.issue - if self.issue < 10: - issue = "00%s" % self.issue - return issue - @property def get_previous_published(self): return self.get_previous_by_pub_date(status__exact=1,post_type=self.post_type) |