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
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)
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)
def datamigration(apps, schema_editor): add_admin_perms(apps.get_model('driver', 'DriverPayGrade'))
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)
def setup_perms(apps, schema_editor): add_admin_perms(apps.get_model('kitchen', 'KitchenJobRequest')) add_admin_perms(apps.get_model('kitchen', 'KitchenFreelancer'))
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)
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')))
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'))
def setup_perms(apps, schema_editor): add_admin_perms(apps.get_model('waiting', 'WaitingJobRequest')) add_admin_perms(apps.get_model('waiting', 'WaitingFreelancer'))
def datamigration(apps, schema_editor): "Adds ability for site admin to create, edit and delete notifications." add_admin_perms(apps.get_model('notification', 'Notification'))
def datamigration(apps, schema_editor): add_admin_perms(apps.get_model('bar', 'BarPayGrade'))
def datamigration(apps, schema_editor): add_admin_perms(apps.get_model('kitchen', 'KitchenPayGrade'))
def datamigration(apps, schema_editor): "Adds ability for site admin to create, edit and delete feedback." add_admin_perms(apps.get_model('feedback', 'BookingFeedback'))
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)
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)
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)
def setup_perms(apps, schema_editor): add_admin_perms(apps.get_model('cleaner', 'CleanerJobRequest')) add_admin_perms(apps.get_model('cleaner', 'Cleaner'))
def datamigration(apps, schema_editor): add_admin_perms(apps.get_model('cleaner', 'CleanerPayGrade'))
def datamigration(apps, schema_editor): add_admin_perms(apps.get_model('waiting', 'WaitingPayGrade'))
def setup_perms(apps, schema_editor): add_admin_perms(apps.get_model('bar', 'BarJobRequest')) add_admin_perms(apps.get_model('bar', 'BarFreelancer'))