Skip to content

Commit

Permalink
Replace braces login required with rules compat
Browse files Browse the repository at this point in the history
  • Loading branch information
slomo committed Aug 25, 2016
1 parent 8008ac1 commit c7f1655
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions euth/dashboard/views.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
from braces.views import LoginRequiredMixin
from django.contrib.messages.views import SuccessMessageMixin
from django.shortcuts import get_object_or_404
from django.utils.translation import ugettext as _
from django.views import generic
from rules.compat import access_mixins as mixins

from euth.user_management import models as user_models


class DashboardProfileView(LoginRequiredMixin,
class DashboardProfileView(mixins.LoginRequiredMixin,
SuccessMessageMixin,
generic.UpdateView):

Expand All @@ -23,6 +23,6 @@ def get_success_url(self):
return self.request.path


class DashboardOverviewView(LoginRequiredMixin, generic.TemplateView):
class DashboardOverviewView(mixins.LoginRequiredMixin, generic.TemplateView):

template_name = "euth_dashboard/dashboard_overview.html"
1 change: 0 additions & 1 deletion euth/rates/static/rates/react_rates.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,6 @@ var RateBox = React.createClass({

module.exports.RateBox = RateBox


module.exports.renderRates = function (url, positiveRates, negativeRates, userRate, userRateId, loginUrl, contentType, objectId, authenticatedAs, style, target, isReadOnly) {
ReactDOM.render(
h(RateBox, {
Expand Down

0 comments on commit c7f1655

Please sign in to comment.