# Path: src/profiles/models.py
# class UserPurchase(models.Model):
#     user = models.OneToOneField(User)
#     products = models.ManyToManyField(Product)
#     
#     def __unicode__(self, ):
#         return self.user.username


from django.contrib import admin
from .models import UserPurchase



class UserPurchaseAdmin(admin.ModelAdmin):
    class Meta:
        model = UserPurchase
        

# Path: src/profiles/models.py
# class UserPurchase(models.Model):
#     user = models.OneToOneField(User)
#     products = models.ManyToManyField(Product)
#     
#     def __unicode__(self, ):
#         return self.user.username


# Path: src/profiles/admin.py
from django.contrib import admin
from .models import UserPurchase




class UserPurchaseAdmin(admin.ModelAdmin):
    class Meta:
        model = UserPurchase
        

admin.site.register(UserPurchase, UserPurchaseAdmin)