Make PyLint happy again
This commit is contained in:
		| @@ -307,6 +307,9 @@ class Profile(db.Model):  # pylint: disable=too-few-public-methods | ||||
|  | ||||
|     @property | ||||
|     def url(self): | ||||
|         """Get the URL for this profile | ||||
|         """ | ||||
|  | ||||
|         from flask import url_for | ||||
|  | ||||
|         if self.user: | ||||
| @@ -390,6 +393,9 @@ class Event(db.Model): | ||||
|  | ||||
|     @property | ||||
|     def url(self): | ||||
|         """The URL of the event | ||||
|         """ | ||||
|  | ||||
|         from flask import url_for | ||||
|  | ||||
|         return url_for('event_details', event_uuid=self.event_uuid) | ||||
| @@ -609,7 +615,7 @@ class Notification(db.Model): | ||||
|         """Get the translated message for ``key`` in HTML format | ||||
|         """ | ||||
|  | ||||
|         from flask import url_for, Markup | ||||
|         from flask import Markup | ||||
|         from flask_security import current_user | ||||
|  | ||||
|         messages = NOTIFICATION_ACTION_MESSAGES.get(self.action) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user