forked from 0x2620/pandora
only create main text if its edited
This commit is contained in:
parent
6ef7ad809e
commit
da3f5855ab
1 changed files with 2 additions and 2 deletions
|
@ -83,9 +83,9 @@ def getText(request):
|
|||
if qs.count() == 0:
|
||||
text = models.Text()
|
||||
text.name = ''
|
||||
text.text = 'Please put something here'
|
||||
text.text = ''
|
||||
text.status = 'public'
|
||||
text.user = request.user
|
||||
text.save()
|
||||
else:
|
||||
text = qs[0]
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue