mirror of
https://gitlab.crans.org/bde/nk20
synced 2025-04-15 03:12:16 +00:00
linters
This commit is contained in:
parent
b9ebb1718a
commit
84e9fea15f
@ -201,8 +201,8 @@ class Entry(models.Model):
|
||||
def save(self, *args, **kwargs):
|
||||
qs = Entry.objects.filter(~Q(pk=self.pk), activity=self.activity, note=self.note, guest=self.guest)
|
||||
if qs.exists():
|
||||
raise ValidationError(_("Already entered on ") +
|
||||
_("{:%Y-%m-%d %H:%M:%S}").format(timezone.localtime(qs.get().time), ))
|
||||
raise ValidationError(_("Already entered on ")
|
||||
+ _("{:%Y-%m-%d %H:%M:%S}").format(timezone.localtime(qs.get().time), ))
|
||||
|
||||
if self.guest:
|
||||
self.note = self.guest.inviter
|
||||
|
Loading…
x
Reference in New Issue
Block a user