Skip to content
This repository was archived by the owner on Aug 29, 2023. It is now read-only.

Commit 21f1fce

Browse files
Some changes made in the views and models.py of the file
1 parent d14923d commit 21f1fce

21 files changed

+165
-16
lines changed
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Generated by Django 3.2.18 on 2023-07-09 09:30
2+
3+
import datetime
4+
from django.db import migrations, models
5+
6+
7+
class Migration(migrations.Migration):
8+
9+
dependencies = [
10+
('Profile', '0020_auto_20230708_1014'),
11+
]
12+
13+
operations = [
14+
migrations.AlterField(
15+
model_name='recentearnings',
16+
name='created_at',
17+
field=models.DateField(default=datetime.date(2023, 7, 9)),
18+
),
19+
migrations.AlterField(
20+
model_name='referral',
21+
name='signed_up_at',
22+
field=models.DateField(default=datetime.date(2023, 7, 9)),
23+
),
24+
migrations.AlterField(
25+
model_name='transaction',
26+
name='created_at',
27+
field=models.DateField(default=datetime.date(2023, 7, 9)),
28+
),
29+
]
Binary file not shown.
Binary file not shown.

Profile/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ def post(self, request, format=None):
333333
# Check if there is an existing ResetPassword object for the user
334334
reset_password = ResetPassword.objects.filter(user=user).first()
335335

336-
# If there is an existing ResetPassword object and it was created less than 15 minutes ago, return an error
336+
# If there is an existing ResetPassword object, and it was created less than 15 minutes ago, return an error
337337
if reset_password and timezone.now() < reset_password.created_at + timezone.timedelta(minutes=15):
338338
time_diff = (reset_password.created_at +
339339
timezone.timedelta(minutes=15) - timezone.now()).seconds // 60
0 Bytes
Binary file not shown.

db.sqlite3

Whitespace-only changes.
192 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)