Project-Stage-Academy / UA1244_beta

1 stars 0 forks source link

Implement Funding Check for Investor Subscriptions #56

Open mehalyna opened 3 weeks ago

mehalyna commented 3 weeks ago

Technical Task: Implement Funding Check for Investor Subscriptions

Steps

  1. Model Adjustments

    • Update the Subscription model (if needed) to include a Share field representing the investment share of an investor.
    • Add a method to the Project model to calculate the total funding.
  2. Serializers

    • Create a serializer to handle subscription creation and funding checks.
  3. Views

    • Create a view to handle subscription creation, including funding validation.
  4. URLs

    • Define URLs to access the subscription endpoints.
  5. Permissions

    • Ensure that only authenticated investors can create subscriptions.
  6. Testing

    • Write unit tests to verify the subscription logic and ensure investors cannot subscribe to fully funded startups.

US #10