Skip to content
This repository has been archived by the owner on May 16, 2020. It is now read-only.

Commit

Permalink
newid is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
jace committed Jun 15, 2017
1 parent 258032b commit e19202a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nodular/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from sqlalchemy.orm.collections import InstrumentedList
from sqlalchemy.ext.declarative import declared_attr
from sqlalchemy.ext.hybrid import hybrid_property
from coaster import newid
from coaster.utils import buid as buid_func
from coaster.sqlalchemy import TimestampMixin, PermissionMixin, BaseScopedNameMixin, JsonDict

from .db import db
Expand Down Expand Up @@ -166,7 +166,7 @@ class Node(BaseScopedNameMixin, db.Model):
#: Full path to this node for URL traversal
_path = Column('path', Unicode(1000), nullable=False, default=u'')
#: Id of the node across sites (staging, production, etc) for import/export
buid = Column(String(22), unique=True, default=newid, nullable=False)
buid = Column(String(22), unique=True, default=buid_func, nullable=False)
user_id = Column(None, ForeignKey('user.id'), nullable=True)
#: User who made this node, empty for auto-generated nodes
user = relationship('User')
Expand Down

0 comments on commit e19202a

Please sign in to comment.