Example #1
0
def __pub_subj(model, username):
    models.publish_subject(model.pk)
    oplogtrack(12, username)
Example #2
0
def __drop_subj(model, username):
    models.drop_subject(model.pk)
    oplogtrack(13, username)
Example #3
0
def __remove_subj(model, username):
    models.delete_subject(model.pk)
    oplogtrack(11, username, model)
Example #4
0
def __sort_subj(username, pks):
    models.sort_subjects(pks)
    oplogtrack(14, username)
Example #5
0
def __add_subj(model, username):
    oplogtrack(9, username, model)
Example #6
0
def __edit_subj(model, username):
    oplogtrack(10, username, model)
Example #7
0
def __drop_app(model, username):
    _drop_app(model.pk)
    oplogtrack(8, username, model)
Example #8
0
def __pub_app(model, username):
    model.online = True
    model.save()
    oplogtrack(7, username, model)
Example #9
0
def __remove_app(model, username):
    model.delete()
    oplogtrack(6, username, model)
Example #10
0
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)
Example #11
0
def __add_app(model, username):
    model.online = True
    model.save()
    oplogtrack(4, username, model)