diff options
author | luxagraf <sng@luxagraf.net> | 2022-07-23 15:47:14 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2022-07-23 15:47:14 -0500 |
commit | b19655bf6e6855a75a73d24c2b8de315518f055d (patch) | |
tree | 3c613ce704b4114a2c7d2804627a3ae033336bca /app/posts/models.py | |
parent | 735ef1fef241b90b3d05f589d633c02b100d654b (diff) |
jrnl: removed issue requirement from models and admin and lttr
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) |