<gh_stars>0
from django.db import models

class Command(models.Model):
    app = models.CharField(max_length=255,null=True,blank=True)
    name = models.CharField(unique=True,max_length=255)
    is_enabled = models.BooleanField(default=True,verbose_name='enabled')

    class Meta:
        db_table = 'django_command_disable'
        indexes = [
           models.Index(fields=['app',]),
           models.Index(fields=['name',]),
           models.Index(fields=['is_enabled',]),
        ]
        ordering = ('app','name',)
        unique_together = [['app','name',]]

from django.db import models

class Command(models.Model):
    app = models.CharField(max_length=255,null=True,blank=True)
    name = models.CharField(unique=True,max_length=255)
    is_enabled = models.BooleanField(default=True,verbose_name='enabled')

    class Meta:
        db_table = 'django_command_disable'
        indexes = [
           models.Index(fields=['app',]),
           models.Index(fields=['name',]),
           models.Index(fields=['is_enabled',]),
        ]
        ordering = ('app','name',)
        unique_together = [['app','name',]]