from django.contrib import admin

from coin.vpn.models import VPNSubscription

class VPNAdmin(admin.ModelAdmin):
    def get_readonly_fields(self, request, obj=None):
        if obj:
            return ['login',]
        else:
            return []

admin.site.register(VPNSubscription, VPNAdmin)
