Skip to content

Commit

Permalink
Make waiting registrations more readable (refs #176)
Browse files Browse the repository at this point in the history
  • Loading branch information
Almad committed Jun 3, 2024
1 parent 1926d49 commit a5c85e9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ddcz/models/used/users.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
from datetime import datetime
from urllib.parse import urljoin

from django.conf import settings
from django.contrib.staticfiles.storage import staticfiles_storage
from django.db import models
from django.urls import reverse
from django.utils.timezone import make_aware

from django.contrib.auth.models import User

Expand Down Expand Up @@ -312,3 +314,11 @@ class AwaitingRegistration(models.Model):

class Meta:
db_table = "uzivatele_cekajici"
verbose_name = "Uživatel ke schválení"
verbose_name_plural = "Uživatelé ke schválení"

def __str__(self):
return "{} ze dne {}".format(
self.name,
make_aware(datetime.fromtimestamp(self.date)),
)

0 comments on commit a5c85e9

Please sign in to comment.