from django.db import models
from django.contrib import admin


class Provider(models.Model):
    name = models.CharField(max_length=50)
    domain = models.CharField(max_length=50)

    class Meta:
        ordering = ['name']
        app_label = 'api'

    def __str__(self):
        return self.domain


@admin.register(Provider)
class ProviderAdmin(admin.ModelAdmin):
    list_display = ('name', 'domain')

[((17, 1, 17, 25), 'django.contrib.admin.register', 'admin.register', ({(17, 16, 17, 24): 'Provider'}, {}), '(Provider)', False, 'from django.contrib import admin\n'), ((6, 11, 6, 42), 'django.db.models.CharField', 'models.CharField', (), '', False, 'from django.db import models\n'), ((7, 13, 7, 44), 'django.db.models.CharField', 'models.CharField', (), '', False, 'from django.db import models\n')]