Skip to content

Commit

Permalink
Fix import
Browse files Browse the repository at this point in the history
  • Loading branch information
Ekirapapaul committed Aug 9, 2020
1 parent 8cd0540 commit 86a18ef
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion mpesa/commons/models.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import uuid
from django.db import models


# Create your models here.
# Creating base models for other models to inherit from
class BaseModel(models.Model):
Expand All @@ -12,4 +13,4 @@ class BaseModel(models.Model):
is_deleted = models.BooleanField(default=False, blank=True)

class Meta:
abstract = True
abstract = True
5 changes: 3 additions & 2 deletions mpesa/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@

from django.db import models
from django.conf import settings
from .commons.models import BaseModel
from mpesa.commons.models import BaseModel


# Create your models here.
class PaymentTransaction(models.Model):
Expand All @@ -29,4 +30,4 @@ class Wallet(BaseModel):
date_created = models.DateTimeField(auto_now=False, auto_now_add=True, null=True)

def __str__(self):
return self.phone_number
return self.phone_number

0 comments on commit 86a18ef

Please sign in to comment.