Пример #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
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
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
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'))