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')

[((307, 331), 'django.contrib.admin.register', 'admin.register', (['Provider'], {}), '(Provider)\n', (321, 331), False, 'from django.contrib import admin\n'), ((105, 136), 'django.db.models.CharField', 'models.CharField', ([], {'max_length': '(50)'}), '(max_length=50)\n', (121, 136), False, 'from django.db import models\n'), ((150, 181), 'django.db.models.CharField', 'models.CharField', ([], {'max_length': '(50)'}), '(max_length=50)\n', (166, 181), False, 'from django.db import models\n')]