Added human readable representations of hosting order models to better manage order from the admin interface.
Related ticket: https://redmine.ungleich.ch/issues/1715
This commit is contained in:
parent
37e75ec355
commit
849c5a2270
6 changed files with 34 additions and 4 deletions
|
|
@ -1,3 +1,4 @@
|
|||
from django.contrib import admin
|
||||
from .models import StripeCustomer
|
||||
|
||||
# Register your models here.
|
||||
admin.site.register(StripeCustomer)
|
||||
|
|
|
|||
|
|
@ -151,6 +151,13 @@ class StripeCustomer(models.Model):
|
|||
|
||||
return stripe_customer
|
||||
|
||||
def __str__(self):
|
||||
"""
|
||||
str cast with a friendly representation of the ContactMessage object
|
||||
"""
|
||||
return "User: %s, Stripe_id: %s" % (self.user, self.stripe_id)
|
||||
|
||||
|
||||
|
||||
class CreditCards(models.Model):
|
||||
name = models.CharField(max_length=50)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue