def __pub_subj(model, username): models.publish_subject(model.pk) oplogtrack(12, username)
def __drop_subj(model, username): models.drop_subject(model.pk) oplogtrack(13, username)
def __remove_subj(model, username): models.delete_subject(model.pk) oplogtrack(11, username, model)
def __sort_subj(username, pks): models.sort_subjects(pks) oplogtrack(14, username)
def __add_subj(model, username): oplogtrack(9, username, model)
def __edit_subj(model, username): oplogtrack(10, username, model)
def __drop_app(model, username): _drop_app(model.pk) oplogtrack(8, username, model)
def __pub_app(model, username): model.online = True model.save() oplogtrack(7, username, model)
def __remove_app(model, username): model.delete() oplogtrack(6, username, model)
def __edit_app(model, username): app_stored = App.objects.get(pk=model.pk) model.create_date = app_stored.create_date model.online = app_stored.online model.save() oplogtrack(5, username, model)
def __add_app(model, username): model.online = True model.save() oplogtrack(4, username, model)