def edit_stylesheet(request, id):
	instance = get_object_or_404(Stylesheet, id=id)
	form = StylesheetForm(request.POST or None, instance=instance)
	if form.is_valid():
		form.save()

	return render(request, 'edit-stylesheet.html', {
		'form': form,
		})
def create_stylesheet(request):
	if request.method == 'POST':
		form = StylesheetForm(request.POST, user=request.user)
		if form.is_valid():
			form.save()
	else:
		form = StylesheetForm(user=request.user)

	return render(request, 'edit-stylesheet.html', {
		'form': form,
		})