Kumi
1e1b590803
Set up the initial Django project structure including custom user model, domain management app, and associated configurations. Added models for Domain, DNSRecord, LeaseAgreement, Payment, and Registrar. Configured serializers, views, and URLs for basic operations. Implemented JWT-based authentication and login via email link. Included necessary admin configurations and migrations. - Added .gitignore to exclude unnecessary files. - Added .vscode/launch.json for VSCode debug configuration. - Added LICENSE file with MIT license. - Created README.md and initialized project directories. - Configured settings for different environments and database support. - Configured basic Celery integration and REST framework settings.
14 lines
313 B
Python
14 lines
313 B
Python
from rest_framework import serializers
|
|
from .models import Domain, Offer
|
|
|
|
|
|
class DomainSerializer(serializers.ModelSerializer):
|
|
class Meta:
|
|
model = Domain
|
|
fields = "__all__"
|
|
|
|
|
|
class OfferSerializer(serializers.ModelSerializer):
|
|
class Meta:
|
|
model = Offer
|
|
fields = "__all__"
|