Giter Site home page Giter Site logo

py-taxi-service-user-form-and-validation's Introduction

Taxi service user form and validation

Read the guideline before starting.

  • Make sure that you change the settings for html-files.
  • Use the following command to load prepared data from fixture to test and debug your code:

python manage.py loaddata taxi_service_db_data.json

  • After loading data from fixture you can use following superuser (or create another one by yourself):
    • Login: admin.user
    • Password: 1qazcde3

Feel free to add more data using admin panel, if needed.

In this task, you will implement a custom form and django built-in forms to create, update or delete content from the site.

  1. Implement:
    • Create, Delete views for Driver,
  2. On the driver list page create a button that leads to the driver creation page.
  3. Create a driver's license update page. The form - DriverLicenseUpdateForm on this page must check that license:
    • Consist only of 8 characters
    • First 3 characters are uppercase letters
    • Last 5 characters are digits
  4. On the driver detail page add buttons that lead to the driver's license updating page and driver deletion page.
  5. On car creation page switch to checkboxes widget for assigning drivers to car.
  6. On the car detail page add button Assign me to this car. This button adds current user to car drivers. When current user is already a driver of this car, there should be Delete me from this car button that deletes user from car drivers.

The car detail page should look like this: image image

NOTE: Attach screenshots of all created or modified pages to pull request. It's important to attach images not links to them.

Note: Check your code using this checklist before pushing your solution.

py-taxi-service-user-form-and-validation's People

Contributors

danylott avatar dmytrosvirsa avatar maxitoska avatar nattalli avatar y-havryliv avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.