FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
django-basic-apps/basic/bookmarks/models.py at master · msGenDev/django-basic-apps · GitHub
msGenDev
django-basic-apps
Repository navigation
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
django-basic-apps
/
basic
/
bookmarks
/
models.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
26 lines (21 loc) · 857 Bytes
Breadcrumbs
django-basic-apps
/
basic
/
bookmarks
/
models.py
Copy path
File metadata and controls
26 lines (21 loc) · 857 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
from
django
.
db
import
models
from
django
.
utils
.
translation
import
ugettext_lazy
as
_
from
tagging
.
fields
import
TagField
class
Bookmark
(
models
.
Model
):
"""Bookmarks model"""
title
=
models
.
CharField
(
max_length
=
100
,
blank
=
True
,
null
=
True
)
slug
=
models
.
SlugField
(
_
(
'slug'
),
unique
=
True
)
url
=
models
.
URLField
(
_
(
'url'
),
unique
=
True
)
description
=
models
.
TextField
(
_
(
'description'
), )
extended
=
models
.
TextField
(
_
(
'extended'
),
blank
=
True
)
created
=
models
.
DateTimeField
(
_
(
'created'
),
auto_now_add
=
True
)
modified
=
models
.
DateTimeField
(
_
(
'modified'
),
auto_now
=
True
)
tags
=
TagField
()
class
Meta
:
verbose_name
=
_
(
'bookmark'
)
verbose_name_plural
=
_
(
'bookmarks'
)
db_table
=
"bookmarks"
def
__unicode__
(
self
):
return
self
.
url
def
get_absolute_url
(
self
):
return
self
.
url
Back
|
FazBrowse Home
|
New Git URL