Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
kszkepzes-backend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
JetBrains YouTrack
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KSZK
DevTeam
kszkepzes
old
kszkepzes-backend
Commits
2cefc477
Commit
2cefc477
authored
7 years ago
by
Chif Gergo
Browse files
Options
Downloads
Patches
Plain Diff
Kisebb hibajavitasok
parent
0ac06961
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/account/models.py
+1
-2
1 addition, 2 deletions
src/account/models.py
src/stats/models.py
+0
-1
0 additions, 1 deletion
src/stats/models.py
src/stats/tests.py
+0
-3
0 additions, 3 deletions
src/stats/tests.py
with
1 addition
and
6 deletions
src/account/models.py
+
1
−
2
View file @
2cefc477
from
django.db
import
models
from
django.db
import
models
from
django.contrib.auth.models
import
User
from
django.contrib.auth.models
import
User
from
django.utils
import
timezone
from
django.core.exceptions
import
ValidationError
from
django.core.exceptions
import
ValidationError
import
datetime
import
datetime
...
@@ -23,5 +22,5 @@ class Profile(models.Model):
...
@@ -23,5 +22,5 @@ class Profile(models.Model):
return
self
.
user
.
username
return
self
.
user
.
username
def
clean
(
self
):
def
clean
(
self
):
if
self
.
join_date
>
datetime
.
date
.
today
()
or
self
.
join_date
<
datetime
.
date
(
2015
,
1
,
1
):
if
self
.
join_date
>
datetime
.
date
.
today
()
or
self
.
join_date
<
datetime
.
date
(
2015
,
1
,
1
):
raise
ValidationError
(
'
Invalid date
'
)
raise
ValidationError
(
'
Invalid date
'
)
This diff is collapsed.
Click to expand it.
src/stats/models.py
+
0
−
1
View file @
2cefc477
...
@@ -2,7 +2,6 @@ from django.db import models
...
@@ -2,7 +2,6 @@ from django.db import models
from
account.models
import
Profile
from
account.models
import
Profile
from
django.utils
import
timezone
from
django.utils
import
timezone
from
django.core.exceptions
import
ValidationError
from
django.core.exceptions
import
ValidationError
# Create your models here.
class
KszkEvent
(
models
.
Model
):
class
KszkEvent
(
models
.
Model
):
...
...
This diff is collapsed.
Click to expand it.
src/stats/tests.py
+
0
−
3
View file @
2cefc477
from
django.test
import
TestCase
# Create your tests here.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment