Commit 317d6e02 authored by Alexander Færøy's avatar Alexander Færøy 🍍
Browse files

Merge branch 'featureadd/timestamp' into 'main'

added timestamp in lobby approval

See merge request tpo/tpa/gitlab-lobby!4
parents 9f876575 8e710e05
......@@ -19,7 +19,7 @@ delete.short_description = "Delete account requests"
class GitlabAccountRequestAdmin(admin.ModelAdmin):
fields = ('username', 'email', 'approved', 'reason')
list_display = ('username', 'email', 'approved', 'reason')
list_display = ('username', 'email', 'approved', 'reason', 'created_date')
actions = [approve, delete]
def has_delete_permission(self, request, obj=None):
......@@ -7,6 +7,7 @@ class GitlabAccountRequest(models.Model):
email = models.EmailField()
reason = models.CharField(max_length=256)
approved = models.BooleanField(default=False)
created_date = models.DateTimeField(auto_now_add=True)
class GitlabAccountRequestForm(forms.ModelForm):
class Meta:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment