This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def review(request): | |
| """A view for uploading new data. | |
| """ | |
| user=User.objects.get(username='carlos') | |
| if request.method == 'POST': # someone is giving us data | |
| formset = LayerReviewFormSet(request.POST, request.FILES) | |
| for form in formset: | |
| print 'reviewing form' | |
| else: # we are asking them to review data | |
| # get the last upload of this user |
NewerOlder