X-Git-Url: http://git.veekun.com/zzz-floof.git/blobdiff_plain/1dfae8eecba58adb311514ce7f284ed610834d6c..79cb1c0d3048c165fd3b9ff287ee1fbe361f904d:/floof/controllers/art.py diff --git a/floof/controllers/art.py b/floof/controllers/art.py index 7c371ed..0b89d98 100644 --- a/floof/controllers/art.py +++ b/floof/controllers/art.py @@ -26,6 +26,7 @@ from wtforms import * class ArtUploadForm(Form): by = TextField('Artists') + by_me = BooleanField('me') file = FileField('Upload') url = TextField('Link') @@ -94,9 +95,17 @@ class ArtController(BaseController): ) c.art.discussion = Discussion(count=0) + # <<<<<<< HEAD + # if c.form.by_me and c.user not in c.form.by.data: + # UserRelation(user=c.user, creator=c.user, kind="by", art=c.art) + # + # for artist in c.form.by.data: + # UserRelation(user=artist, creator=c.user, kind="by", art=c.art) + # ======= # For the moment, cheerfully assume that people are uploading their own # art ArtUser(art=c.art, user=c.user, type=ArtUserType.BY) + # >>>>>>> origin/master try: