Rename table to StatsSignupCount
This commit is contained in:
parent
3d85448b0e
commit
d7a529dd94
|
@ -133,7 +133,7 @@ class StatsMemberCount(models.Model):
|
|||
member_count = models.IntegerField()
|
||||
green_count = models.IntegerField()
|
||||
|
||||
class StatsMemberSignup(models.Model):
|
||||
class StatsSignupCount(models.Model):
|
||||
month = models.DateField()
|
||||
signup_count = models.IntegerField()
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ with open('old_counts.csv', newline='') as csvfile:
|
|||
for row in reader:
|
||||
print('Adding', row['month'], row['signup_count'])
|
||||
|
||||
models.StatsMemberSignup.objects.update_or_create(
|
||||
models.StatsSignupCount.objects.update_or_create(
|
||||
month=row['month']+'-01',
|
||||
defaults=dict(signup_count=row['signup_count']),
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue
Block a user