dont display role_id on RoleAdmin page
diff --git a/plstackapi/core/admin.py b/plstackapi/core/admin.py
index 3dbf99c..da2bea5 100644
--- a/plstackapi/core/admin.py
+++ b/plstackapi/core/admin.py
@@ -98,20 +98,10 @@
list_filter = ('deploymentNetwork',)
-
-class IgnoredField(forms.Field):
- def validate(self, value):
- return
-
-
-
-class RoleForm(forms.ModelForm):
- role_id = IgnoredField()
- role_type = forms.CharField()
-
-
class RoleAdmin(admin.ModelAdmin):
- form = RoleForm
+ fieldsets = [
+ ('Role', {'fields': ['role_type']})
+ ]
list_display = ('role_type',)
admin.site.register(Site, SiteAdmin)