Commit cc96cd90 authored by Staś Kycia's avatar Staś Kycia
Browse files

removed some usless comments

parent b579f141
Loading
Loading
Loading
Loading
+0 −11
Changes for vote/templates/vote/vote.html: 0 added lines, 11 removed lines.
Original line number Diff line number Diff line
@@ -10,17 +10,6 @@
                {% if election.description %}
                    <p>{{ election.description }}</p>
                {% endif %}
                <!-- <form>
                    <div class="form-check mb-1">
                        <input id="option1" class="form-check-input" type="radio" name="option"/>
                        <label class="form-check-label" for="option1">Label</label>
                    </div>
                    <div class="form-check mb-1">
                        <input id="option1" class="form-check-input" type="radio" name="option"/>
                        <label class="form-check-label" for="option1">Label</label>
                    </div>
                    <input class="btn btn-primary mt-3" type="submit" value="Zagłosuj" />
                </form> -->
                <form method="post">
                    {% csrf_token %}
                    
+0 −3
Changes for vote/views.py: 0 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -60,9 +60,6 @@ def vote(request, alias, token):
                option.votes += 1
                option.save()

            # election.voted_voters.add(voter)
            # election.save()

            participation = Participation(voter=voter, election=election)
            participation.save()

+0 −1
Changes for voters/admin.py: 0 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -122,6 +122,5 @@ class GroupAdmin(admin.ModelAdmin):
    def get_class_name(self, obj):
        return obj.class_name

# Register your models here.
admin.site.register(Group, GroupAdmin)
admin.site.register(Voter, VoterAdmin)
 No newline at end of file
+0 −1
Changes for wybory/urls.py: 0 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -22,5 +22,4 @@ urlpatterns = [
    path('', include('stats.urls')),
    path('admin/', admin.site.urls),
    path('django-rq/', include('django_rq.urls')),
    # path('accounts/', include('django.contrib.auth.urls'))
]