GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still https://gitweb.torproject.org/ https://git.torproject.org/ and git-rw.torproject.org.

Commit 090771e1 authored by asu1996's avatar asu1996

added notes field in django-admin

parent 1155ab47
......@@ -18,8 +18,8 @@ delete.short_description = "Delete account requests"
@admin.register(GitlabAccountRequest)
class GitlabAccountRequestAdmin(admin.ModelAdmin):
fields = ('username', 'email', 'approved', 'reason')
list_display = ('username', 'email', 'approved', 'reason')
fields = ('username', 'email', 'approved', 'reason', 'admin_notes')
list_display = ('username', 'email', 'approved', 'reason', 'admin_notes')
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)
admin_notes = models.TextField(blank=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