Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
D
django
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
django
Commits
8b2515a4
Kaydet (Commit)
8b2515a4
authored
Eyl 07, 2017
tarafından
Sergey Fedoseev
Kaydeden (comit)
Tim Graham
Eyl 07, 2017
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Removed unneeded __init__() methods.
üst
44a6c27f
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
21 additions
and
48 deletions
+21
-48
base_user.py
django/contrib/auth/base_user.py
+4
-6
models.py
django/contrib/auth/models.py
+0
-3
operations.py
django/contrib/gis/db/backends/postgis/operations.py
+8
-13
uploadhandler.py
django/core/files/uploadhandler.py
+0
-3
base.py
django/core/handlers/base.py
+6
-8
test.py
django/core/management/commands/test.py
+1
-4
operations.py
django/db/backends/oracle/operations.py
+1
-4
base.py
django/db/models/functions/base.py
+0
-3
compiler.py
django/db/models/sql/compiler.py
+1
-4
No files found.
django/contrib/auth/base_user.py
Dosyayı görüntüle @
8b2515a4
...
...
@@ -52,6 +52,10 @@ class AbstractBaseUser(models.Model):
REQUIRED_FIELDS
=
[]
# Stores the raw password if set_password() is called so that it can
# be passed to password_changed() after the model is saved.
_password
=
None
class
Meta
:
abstract
=
True
...
...
@@ -59,12 +63,6 @@ class AbstractBaseUser(models.Model):
"Return the identifying username for this User"
return
getattr
(
self
,
self
.
USERNAME_FIELD
)
def
__init__
(
self
,
*
args
,
**
kwargs
):
super
()
.
__init__
(
*
args
,
**
kwargs
)
# Stores the raw password if set_password() is called so that it can
# be passed to password_changed() after the model is saved.
self
.
_password
=
None
def
__str__
(
self
):
return
self
.
get_username
()
...
...
django/contrib/auth/models.py
Dosyayı görüntüle @
8b2515a4
...
...
@@ -374,9 +374,6 @@ class AnonymousUser:
_groups
=
EmptyManager
(
Group
)
_user_permissions
=
EmptyManager
(
Permission
)
def
__init__
(
self
):
pass
def
__str__
(
self
):
return
'AnonymousUser'
...
...
django/contrib/gis/db/backends/postgis/operations.py
Dosyayı görüntüle @
8b2515a4
...
...
@@ -103,6 +103,14 @@ class PostGISOperations(BaseSpatialOperations, DatabaseOperations):
Adapter
=
PostGISAdapter
collect
=
geom_func_prefix
+
'Collect'
extent
=
geom_func_prefix
+
'Extent'
extent3d
=
geom_func_prefix
+
'3DExtent'
length3d
=
geom_func_prefix
+
'3DLength'
makeline
=
geom_func_prefix
+
'MakeLine'
perimeter3d
=
geom_func_prefix
+
'3DPerimeter'
unionagg
=
geom_func_prefix
+
'Union'
gis_operators
=
{
'bbcontains'
:
PostGISOperator
(
op
=
'~'
,
raster
=
True
),
'bboverlaps'
:
PostGISOperator
(
op
=
'&&'
,
geography
=
True
,
raster
=
True
),
...
...
@@ -137,19 +145,6 @@ class PostGISOperations(BaseSpatialOperations, DatabaseOperations):
select
=
'
%
s::bytea'
select_extent
=
None
def
__init__
(
self
,
connection
):
super
()
.
__init__
(
connection
)
prefix
=
self
.
geom_func_prefix
self
.
collect
=
prefix
+
'Collect'
self
.
extent
=
prefix
+
'Extent'
self
.
extent3d
=
prefix
+
'3DExtent'
self
.
length3d
=
prefix
+
'3DLength'
self
.
makeline
=
prefix
+
'MakeLine'
self
.
perimeter3d
=
prefix
+
'3DPerimeter'
self
.
unionagg
=
prefix
+
'Union'
@cached_property
def
function_names
(
self
):
function_names
=
{
...
...
django/core/files/uploadhandler.py
Dosyayı görüntüle @
8b2515a4
...
...
@@ -132,9 +132,6 @@ class TemporaryFileUploadHandler(FileUploadHandler):
"""
Upload handler that streams data into a temporary file.
"""
def
__init__
(
self
,
*
args
,
**
kwargs
):
super
()
.
__init__
(
*
args
,
**
kwargs
)
def
new_file
(
self
,
*
args
,
**
kwargs
):
"""
Create the file object to append to as data is coming in.
...
...
django/core/handlers/base.py
Dosyayı görüntüle @
8b2515a4
...
...
@@ -13,14 +13,12 @@ logger = logging.getLogger('django.request')
class
BaseHandler
:
def
__init__
(
self
):
self
.
_request_middleware
=
None
self
.
_view_middleware
=
None
self
.
_template_response_middleware
=
None
self
.
_response_middleware
=
None
self
.
_exception_middleware
=
None
self
.
_middleware_chain
=
None
_request_middleware
=
None
_view_middleware
=
None
_template_response_middleware
=
None
_response_middleware
=
None
_exception_middleware
=
None
_middleware_chain
=
None
def
load_middleware
(
self
):
"""
...
...
django/core/management/commands/test.py
Dosyayı görüntüle @
8b2515a4
...
...
@@ -10,10 +10,7 @@ class Command(BaseCommand):
# DiscoverRunner runs the checks after databases are set up.
requires_system_checks
=
False
def
__init__
(
self
):
self
.
test_runner
=
None
super
()
.
__init__
()
test_runner
=
None
def
run_from_argv
(
self
,
argv
):
"""
...
...
django/db/backends/oracle/operations.py
Dosyayı görüntüle @
8b2515a4
...
...
@@ -23,6 +23,7 @@ class DatabaseOperations(BaseDatabaseOperations):
'PositiveSmallIntegerField'
:
(
0
,
99999999999
),
'PositiveIntegerField'
:
(
0
,
99999999999
),
}
set_operators
=
dict
(
BaseDatabaseOperations
.
set_operators
,
difference
=
'MINUS'
)
# TODO: colorize this SQL code with style.SQL_KEYWORD(), etc.
_sequence_reset_sql
=
"""
...
...
@@ -52,10 +53,6 @@ END;
# Oracle doesn't support string without precision; use the max string size.
cast_char_field_without_max_length
=
'NVARCHAR2(2000)'
def
__init__
(
self
,
*
args
,
**
kwargs
):
super
()
.
__init__
(
*
args
,
**
kwargs
)
self
.
set_operators
[
'difference'
]
=
'MINUS'
def
cache_key_culling_sql
(
self
):
return
"""
SELECT cache_key
...
...
django/db/models/functions/base.py
Dosyayı görüntüle @
8b2515a4
...
...
@@ -52,9 +52,6 @@ class ConcatPair(Func):
"""
function
=
'CONCAT'
def
__init__
(
self
,
left
,
right
,
**
extra
):
super
()
.
__init__
(
left
,
right
,
**
extra
)
def
as_sqlite
(
self
,
compiler
,
connection
):
coalesced
=
self
.
coalesce
()
return
super
(
ConcatPair
,
coalesced
)
.
as_sql
(
...
...
django/db/models/sql/compiler.py
Dosyayı görüntüle @
8b2515a4
...
...
@@ -1056,10 +1056,7 @@ class SQLCompiler:
class
SQLInsertCompiler
(
SQLCompiler
):
def
__init__
(
self
,
*
args
,
**
kwargs
):
self
.
return_id
=
False
super
()
.
__init__
(
*
args
,
**
kwargs
)
return_id
=
False
def
field_as_sql
(
self
,
field
,
val
):
"""
...
...
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