mirror of
https://github.com/django/django.git
synced 2025-11-25 05:04:26 +00:00
Fixed all E261 warnings
This commit is contained in:
parent
c3791463a5
commit
8eec2d93b6
152 changed files with 630 additions and 630 deletions
|
|
@ -35,7 +35,7 @@ class ValidationTestModel(models.Model):
|
|||
is_active = models.BooleanField(default=False)
|
||||
pub_date = models.DateTimeField()
|
||||
band = models.ForeignKey(Band)
|
||||
no = models.IntegerField(verbose_name="Number", blank=True, null=True) # This field is intentionally 2 characters long. See #16080.
|
||||
no = models.IntegerField(verbose_name="Number", blank=True, null=True) # This field is intentionally 2 characters long. See #16080.
|
||||
|
||||
def decade_published_in(self):
|
||||
return self.pub_date.strftime('%Y')[:3] + "0's"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue