Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
widget_group3
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jonathan Talbot
widget_group3
Commits
1fc4d249
Commit
1fc4d249
authored
Apr 08, 2022
by
Jonathan Talbot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
4b934cfd
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
1 deletion
+21
-1
db.sqlite3
widget_group3/db.sqlite3
+0
-0
models.cpython-310.pyc
...t_group3/widget_group3/__pycache__/models.cpython-310.pyc
+0
-0
0003_alter_widgetuser_id_num.py
.../widget_group3/migrations/0003_alter_widgetuser_id_num.py
+19
-0
0003_alter_widgetuser_id_num.cpython-310.pyc
.../__pycache__/0003_alter_widgetuser_id_num.cpython-310.pyc
+0
-0
models.py
widget_group3/widget_group3/models.py
+2
-1
No files found.
widget_group3/db.sqlite3
View file @
1fc4d249
No preview for this file type
widget_group3/widget_group3/__pycache__/models.cpython-310.pyc
View file @
1fc4d249
No preview for this file type
widget_group3/widget_group3/migrations/0003_alter_widgetuser_id_num.py
0 → 100644
View file @
1fc4d249
# Generated by Django 4.0.3 on 2022-04-08 06:12
import
django.core.validators
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'widget_group3'
,
'0002_alter_widgetuser_first_name'
),
]
operations
=
[
migrations
.
AlterField
(
model_name
=
'widgetuser'
,
name
=
'id_num'
,
field
=
models
.
CharField
(
max_length
=
7
,
validators
=
[
django
.
core
.
validators
.
RegexValidator
(
'^
\\
d{1,10}$'
)]),
),
]
widget_group3/widget_group3/migrations/__pycache__/0003_alter_widgetuser_id_num.cpython-310.pyc
0 → 100644
View file @
1fc4d249
File added
widget_group3/widget_group3/models.py
View file @
1fc4d249
from
django.db
import
models
from
django.db
import
models
from
django.urls
import
reverse
from
django.urls
import
reverse
from
django.core.validators
import
RegexValidator
# Department used for widget user
# Department used for widget user
class
Department
(
models
.
Model
):
class
Department
(
models
.
Model
):
...
@@ -10,7 +11,7 @@ class Department(models.Model):
...
@@ -10,7 +11,7 @@ class Department(models.Model):
return
'{}, {}'
.
format
(
self
.
dept_name
,
self
.
home_unit
)
return
'{}, {}'
.
format
(
self
.
dept_name
,
self
.
home_unit
)
class
WidgetUser
(
models
.
Model
):
class
WidgetUser
(
models
.
Model
):
id_num
=
models
.
IntegerField
(
)
id_num
=
models
.
CharField
(
max_length
=
7
,
validators
=
[
RegexValidator
(
r'^\d{1,10}$'
)]
)
first_name
=
models
.
CharField
(
max_length
=
90
)
first_name
=
models
.
CharField
(
max_length
=
90
)
middle_name
=
models
.
CharField
(
max_length
=
100
)
middle_name
=
models
.
CharField
(
max_length
=
100
)
last_name
=
models
.
CharField
(
max_length
=
100
)
last_name
=
models
.
CharField
(
max_length
=
100
)
...
...
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