Skip to content

Instantly share code, notes, and snippets.

TheOneTrueLX

Block or report user

Report or block TheOneTrueLX

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@TheOneTrueLX
TheOneTrueLX / softdelete.py
Last active Jan 4, 2019
A Laravel-style soft-delete mixin class for neomodel
View softdelete.py
# This code has only been marginally tested. Use at your own risk.
from datetime import datetime
from dateutil.tz import tzutc
from neomodel import DateTimeProperty
from neomodel.util import classproperty
class SoftDeleteMixin(object):
"""
Adds Laravel-style soft-delete functionality to a neomodel StructuredNode-based class.
You can’t perform that action at this time.