Skip to content

Commit

Permalink
Fix autoadd (refs #195)
Browse files Browse the repository at this point in the history
  • Loading branch information
Almad committed Dec 29, 2024
1 parent 8abfb3f commit a2d89a6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions ddcz/models/used/social.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
from datetime import date
from time import strptime

from django.db import models

from ..magic import MisencodedCharField, MisencodedTextField
Expand Down Expand Up @@ -92,7 +89,7 @@ class Market(models.Model):
max_length=12, db_column="datum", verbose_name="Přidáno"
)

created = models.DateTimeField(verbose_name="Přidáno")
created = models.DateTimeField(verbose_name="Přidáno", auto_now_add=True)

def __str__(self):
return f"{self.name} ({self.group}) z {self.published}"
Expand Down

0 comments on commit a2d89a6

Please sign in to comment.