Fix syntax errors
This commit is contained in:
parent
915c2b8069
commit
789bb2510b
@ -29,7 +29,7 @@ snippet file
|
||||
snippet filepath
|
||||
${1:FIELDNAME} = models.FilePathField(path=${2:"/abs/path/to/dir"}${3:, max_length=100}${4:, match="*.ext"}${5:, recursive=True}${6:, blank=True, })
|
||||
snippet float
|
||||
${1:FIELDNAME} = models.FloatField({2})
|
||||
${1:FIELDNAME} = models.FloatField(${2})
|
||||
snippet image
|
||||
${1:FIELDNAME} = models.ImageField(upload_to=${2:path/for/upload}${3:, height_field=height, width_field=width}${4:, max_length=100})
|
||||
snippet int
|
||||
@ -39,13 +39,13 @@ snippet ip
|
||||
snippet nullbool
|
||||
${1:FIELDNAME} = models.NullBooleanField(${2})
|
||||
snippet posint
|
||||
${1:FIELDNAME} = models.PositiveIntegerField({$2})
|
||||
${1:FIELDNAME} = models.PositiveIntegerField(${2})
|
||||
snippet possmallint
|
||||
${1:FIELDNAME} = models.PositiveSmallIntegerField({$2})
|
||||
${1:FIELDNAME} = models.PositiveSmallIntegerField(${2})
|
||||
snippet slug
|
||||
${1:FIELDNAME} = models.SlugField(max_length=${2:50}${3:, blank=True})
|
||||
snippet smallint
|
||||
${1:FIELDNAME} = models.SmallIntegerField({$2})
|
||||
${1:FIELDNAME} = models.SmallIntegerField(${2})
|
||||
snippet text
|
||||
${1:FIELDNAME} = models.TextField(${2:blank=True})
|
||||
snippet time
|
||||
|
Loading…
Reference in New Issue
Block a user