mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Fixing payment date.
This commit is contained in:
parent
8cf18d93e8
commit
2400794306
3 changed files with 8 additions and 8 deletions
|
@ -11,8 +11,8 @@ class Migration(SchemaMigration):
|
|||
# Adding model 'PaymentHistory'
|
||||
db.create_table('profile_paymenthistory', (
|
||||
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
|
||||
('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['auth.User'])),
|
||||
('payment_date', self.gf('django.db.models.fields.DateTimeField')(auto_now=True, blank=True)),
|
||||
('user', self.gf('django.db.models.fields.related.ForeignKey')(related_name='payments', to=orm['auth.User'])),
|
||||
('payment_date', self.gf('django.db.models.fields.DateTimeField')()),
|
||||
('payment_amount', self.gf('django.db.models.fields.IntegerField')()),
|
||||
('payment_provider', self.gf('django.db.models.fields.CharField')(max_length=20)),
|
||||
))
|
||||
|
@ -70,12 +70,12 @@ class Migration(SchemaMigration):
|
|||
'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
|
||||
},
|
||||
'profile.paymenthistory': {
|
||||
'Meta': {'object_name': 'PaymentHistory'},
|
||||
'Meta': {'ordering': "['-payment_date']", 'object_name': 'PaymentHistory'},
|
||||
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
||||
'payment_amount': ('django.db.models.fields.IntegerField', [], {}),
|
||||
'payment_date': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
|
||||
'payment_date': ('django.db.models.fields.DateTimeField', [], {}),
|
||||
'payment_provider': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
|
||||
'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"})
|
||||
'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'payments'", 'to': "orm['auth.User']"})
|
||||
},
|
||||
'profile.profile': {
|
||||
'Meta': {'object_name': 'Profile'},
|
||||
|
|
|
@ -28,7 +28,7 @@ class Migration(DataMigration):
|
|||
payments.count())
|
||||
else:
|
||||
print " ***> %s: %s -- NO PREMIUM EXPIRE" % (i, user.username)
|
||||
|
||||
|
||||
def backwards(self, orm):
|
||||
"Write your backwards methods here."
|
||||
|
||||
|
@ -73,7 +73,7 @@ class Migration(DataMigration):
|
|||
'Meta': {'ordering': "['-payment_date']", 'object_name': 'PaymentHistory'},
|
||||
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
|
||||
'payment_amount': ('django.db.models.fields.IntegerField', [], {}),
|
||||
'payment_date': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
|
||||
'payment_date': ('django.db.models.fields.DateTimeField', [], {}),
|
||||
'payment_provider': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
|
||||
'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'payments'", 'to': "orm['auth.User']"})
|
||||
},
|
||||
|
|
|
@ -424,7 +424,7 @@ class MSentEmail(mongo.Document):
|
|||
|
||||
class PaymentHistory(models.Model):
|
||||
user = models.ForeignKey(User, related_name='payments')
|
||||
payment_date = models.DateTimeField(auto_now=True)
|
||||
payment_date = models.DateTimeField()
|
||||
payment_amount = models.IntegerField()
|
||||
payment_provider = models.CharField(max_length=20)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue