rc for skip of literal binds
This commit is contained in:
@ -8,7 +8,9 @@ metadata = sqlalchemy.MetaData()
|
||||
|
||||
|
||||
class Course(ormar.Model):
|
||||
class Meta(ormar.ModelMeta): # note you don't have to subclass - but it's recommended for ide completion and mypy
|
||||
class Meta(
|
||||
ormar.ModelMeta
|
||||
): # note you don't have to subclass - but it's recommended for ide completion and mypy
|
||||
database = database
|
||||
metadata = metadata
|
||||
|
||||
|
||||
@ -16,4 +16,5 @@ class Course(ormar.Model):
|
||||
name: ormar.String(max_length=100)
|
||||
completed: ormar.Boolean(default=False)
|
||||
|
||||
c1 = Course()
|
||||
|
||||
c1 = Course()
|
||||
|
||||
@ -14,4 +14,4 @@ class Course(ormar.Model):
|
||||
|
||||
id = ormar.Integer(primary_key=True)
|
||||
name = ormar.String(max_length=100)
|
||||
completed = ormar.Boolean(default=False)
|
||||
completed = ormar.Boolean(default=False)
|
||||
|
||||
@ -19,4 +19,4 @@ class Course(ormar.Model):
|
||||
|
||||
@property_field
|
||||
def prefixed_name(self):
|
||||
return 'custom_prefix__' + self.name
|
||||
return "custom_prefix__" + self.name
|
||||
|
||||
Reference in New Issue
Block a user