Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Fukász Rómeó Ervin
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
257106ae
authored
Apr 27, 2015
by
Bach Dániel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: remove @permalink
parent
4c7d268c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
circle/dashboard/models.py
+5
-6
No files found.
circle/dashboard/models.py
View file @
257106ae
...
...
@@ -27,7 +27,7 @@ from django.contrib.auth.signals import user_logged_in
from
django.core.urlresolvers
import
reverse
from
django.db.models
import
(
Model
,
ForeignKey
,
OneToOneField
,
CharField
,
IntegerField
,
TextField
,
DateTimeField
,
permalink
,
BooleanField
DateTimeField
,
BooleanField
)
from
django.db.models.signals
import
post_save
,
pre_delete
,
post_delete
from
django.templatetags.static
import
static
...
...
@@ -75,9 +75,9 @@ class Message(TimeStampedModel, TimeFramedModel):
def
__unicode__
(
self
):
return
self
.
message
@permalink
def
get_absolute_url
(
self
):
return
(
'dashboard.views.message-detail'
,
None
,
{
'pk'
:
self
.
pk
})
return
reverse
(
'dashboard.views.message-detail'
,
kwargs
=
{
'pk'
:
self
.
pk
})
class
Favourite
(
Model
):
...
...
@@ -291,10 +291,9 @@ class GroupProfile(AclBase):
except
cls
.
DoesNotExist
:
return
Group
.
objects
.
get
(
name
=
name
)
@permalink
def
get_absolute_url
(
self
):
return
(
'dashboard.views.group-detail'
,
None
,
{
'pk'
:
self
.
group
.
pk
})
return
reverse
(
'dashboard.views.group-detail'
,
kwargs
=
{
'pk'
:
self
.
group
.
pk
})
def
get_or_create_profile
(
self
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment