Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Håvard Farestveit
tdt4242-base
Commits
0ac31661
Commit
0ac31661
authored
Apr 14, 2021
by
Elias Sagmo Larsen
Browse files
pylint/models_UnusedImports
parent
1617e0e9
Pipeline
#127914
passed with stage
in 31 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
backend/secfit/facilities/models.py
View file @
0ac31661
"""Contains the models for the facilities Django application. Admins create facilities,
which contain descriptions, images and location.
"""
import
os
from
django.core.validators
import
MaxValueValidator
,
MinValueValidator
from
django.db
import
models
from
.validators
import
max_words
def
facility_directory_path
(
instance
,
filename
):
...
...
@@ -37,7 +37,6 @@ class Facility(models.Model):
image4: Image of the facility
image5: Image of the facility
"""
from
.validators
import
image_size
,
max_words
name
=
models
.
CharField
(
max_length
=
50
,
unique
=
True
)
date
=
models
.
DateField
()
...
...
Write
Preview
Supports
Markdown
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