コード例 #1
0
def setup_perms(apps, schema_editor):
    """Adds ability for site admin to create, edit and delete driver
    job requests.
    """
    try:
        DriverJobRequest = apps.get_model('job', 'DriverJobRequest')
        add_admin_perms(DriverJobRequest)
    except:
        pass
コード例 #2
0
def setup_perms(apps, schema_editor):
    """Adds ability for site admin to create, edit and delete driver
    job requests.
    """
    try:
        DriverJobRequest = apps.get_model('job', 'DriverJobRequest')
        add_admin_perms(DriverJobRequest)
    except:
        pass
コード例 #3
0
def setup_perms(apps, schema_editor):
    "Adds ability for site admin to create, edit and delete leads."
    Lead = apps.get_model('client', 'Lead')
    add_admin_perms(Lead)
コード例 #4
0
ファイル: 0027_perms.py プロジェクト: Peder1987/buzzhire
def setup_perms(apps, schema_editor):
    "Adds ability for site admin to create, edit and delete drivers."
    DriverJobRequest = apps.get_model('driver', 'DriverJobRequest')
    add_admin_perms(DriverJobRequest)
コード例 #5
0
def datamigration(apps, schema_editor):
    add_admin_perms(apps.get_model('driver', 'DriverPayGrade'))
コード例 #6
0
def setup_perms(apps, schema_editor):
    """Adds ability for site admin to create, edit and delete freelancers.
    """
    Freelancer = apps.get_model('freelancer', 'Freelancer')
    add_admin_perms(Freelancer)
コード例 #7
0
def setup_perms(apps, schema_editor):
    add_admin_perms(apps.get_model('kitchen', 'KitchenJobRequest'))
    add_admin_perms(apps.get_model('kitchen', 'KitchenFreelancer'))
コード例 #8
0
def setup_perms(apps, schema_editor):
    """Adds ability for site admin to create, edit and delete bookings.
    """
    Booking = apps.get_model('booking', 'Booking')
    add_admin_perms(Booking)
コード例 #9
0
ファイル: 0019_add_perms.py プロジェクト: kahihia/buzzhire-1
def setup_perms(apps, schema_editor):
    """Adds ability for site admin to create, edit and delete vehicle types and
    driver vehicle types."""
    add_admin_perms((apps.get_model('driver', 'VehicleType'),
                     apps.get_model('driver', 'DriverVehicleType')))
コード例 #10
0
def setup_perms(apps, schema_editor):
    """Adds ability for site admin to create, edit and delete postcodes.
    """
    add_admin_perms(apps.get_model('location', 'Postcode'))
コード例 #11
0
def setup_perms(apps, schema_editor):
    add_admin_perms(apps.get_model('waiting', 'WaitingJobRequest'))
    add_admin_perms(apps.get_model('waiting', 'WaitingFreelancer'))
コード例 #12
0
def datamigration(apps, schema_editor):
    "Adds ability for site admin to create, edit and delete notifications."
    add_admin_perms(apps.get_model('notification', 'Notification'))
コード例 #13
0
def datamigration(apps, schema_editor):
    add_admin_perms(apps.get_model('bar', 'BarPayGrade'))
コード例 #14
0
def datamigration(apps, schema_editor):
    "Adds ability for site admin to create, edit and delete notifications."
    add_admin_perms(apps.get_model('notification', 'Notification'))
コード例 #15
0
def setup_perms(apps, schema_editor):
    """Adds ability for site admin to create, edit and delete postcodes.
    """
    add_admin_perms(apps.get_model('location', 'Postcode'))
コード例 #16
0
def datamigration(apps, schema_editor):
    add_admin_perms(apps.get_model('kitchen', 'KitchenPayGrade'))
コード例 #17
0
def setup_perms(apps, schema_editor):
    add_admin_perms(apps.get_model('waiting', 'WaitingJobRequest'))
    add_admin_perms(apps.get_model('waiting', 'WaitingFreelancer'))
コード例 #18
0
def datamigration(apps, schema_editor):
    "Adds ability for site admin to create, edit and delete feedback."
    add_admin_perms(apps.get_model('feedback', 'BookingFeedback'))
コード例 #19
0
def setup_perms(apps, schema_editor):
    """Adds ability for site admin to create, edit and delete job requests.
    """
    JobRequest = apps.get_model('job', 'JobRequest')
    add_admin_perms(JobRequest)
コード例 #20
0
def setup_perms(apps, schema_editor):
    """Adds ability for site admin to create, edit and delete invitations.
    """
    Invitation = apps.get_model('booking', 'Invitation')
    add_admin_perms(Invitation)
コード例 #21
0
def setup_perms(apps, schema_editor):
    """Adds ability for site admin to create, edit and delete invitations.
    """
    Invitation = apps.get_model('booking', 'Invitation')
    add_admin_perms(Invitation)
コード例 #22
0
def setup_perms(apps, schema_editor):
    "Adds ability for site admin to create, edit and delete users."
    from django.contrib.auth.models import User
    add_admin_perms(User)
コード例 #23
0
def setup_perms(apps, schema_editor):
    add_admin_perms(apps.get_model('cleaner', 'CleanerJobRequest'))
    add_admin_perms(apps.get_model('cleaner', 'Cleaner'))
コード例 #24
0
ファイル: 0027_perms.py プロジェクト: kahihia/buzzhire-1
def setup_perms(apps, schema_editor):
    "Adds ability for site admin to create, edit and delete drivers."
    DriverJobRequest = apps.get_model('driver', 'DriverJobRequest')
    add_admin_perms(DriverJobRequest)
コード例 #25
0
def setup_perms(apps, schema_editor):
    """Adds ability for site admin to create, edit and delete bookings.
    """
    Booking = apps.get_model('booking', 'Booking')
    add_admin_perms(Booking)
コード例 #26
0
def setup_perms(apps, schema_editor):
    """Adds ability for site admin to create, edit and delete job requests.
    """
    JobRequest = apps.get_model('job', 'JobRequest')
    add_admin_perms(JobRequest)
コード例 #27
0
def setup_perms(apps, schema_editor):
    "Adds ability for site admin to create, edit and delete leads."
    Lead = apps.get_model('client', 'Lead')
    add_admin_perms(Lead)
コード例 #28
0
def datamigration(apps, schema_editor):
    add_admin_perms(apps.get_model('cleaner', 'CleanerPayGrade'))
コード例 #29
0
def datamigration(apps, schema_editor):
    add_admin_perms(apps.get_model('waiting', 'WaitingPayGrade'))
コード例 #30
0
def setup_perms(apps, schema_editor):
    """Adds ability for site admin to create, edit and delete freelancers.
    """
    Freelancer = apps.get_model('freelancer', 'Freelancer')
    add_admin_perms(Freelancer)
コード例 #31
0
def setup_perms(apps, schema_editor):
    add_admin_perms(apps.get_model('cleaner', 'CleanerJobRequest'))
    add_admin_perms(apps.get_model('cleaner', 'Cleaner'))
コード例 #32
0
def datamigration(apps, schema_editor):
    add_admin_perms(apps.get_model('waiting', 'WaitingPayGrade'))
コード例 #33
0
def setup_perms(apps, schema_editor):
    add_admin_perms(apps.get_model('bar', 'BarJobRequest'))
    add_admin_perms(apps.get_model('bar', 'BarFreelancer'))